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:
@ -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.');"
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user