Add closing </i> tag to jQuery Waypoint 10 test

Edited regex for first test of Waypoint: Change Text Inside an Element Using jQuery to check for entire correct solution rather than just the opening tag, Closes #5461
This commit is contained in:
BKinahan
2015-12-27 22:56:04 +00:00
parent 553db13caf
commit 1a5b44dfa0

View File

@ -552,7 +552,7 @@
], ],
"releasedOn": "November 18, 2015", "releasedOn": "November 18, 2015",
"tests": [ "tests": [
"assert.isTrue((/<i>/gi).test($(\"#target4\").html()), 'message: Italicize the text in your <code>target4</code> button by adding HTML tags.');", "assert.isTrue((/<i>#target4<\\/i>/gi).test($(\"#target4\").html()), 'message: Italicize the text in your <code>target4</code> button by adding HTML tags.');",
"assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');", "assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');",
"assert.isFalse((/<i>/gi).test($(\"h3\").html()), 'message: Do not alter any other text.');" "assert.isFalse((/<i>/gi).test($(\"h3\").html()), 'message: Do not alter any other text.');"
], ],