From 19411e25ca58272e7c667595f87bd7d02ee02d97 Mon Sep 17 00:00:00 2001 From: BKinahan Date: Sun, 27 Dec 2015 22:56:04 +0000 Subject: [PATCH] Add closing 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 --- .../01-front-end-development-certification/jquery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/jquery.json b/seed/challenges/01-front-end-development-certification/jquery.json index 9638986602..2ef3e015c8 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -552,7 +552,7 @@ ], "releasedOn": "November 18, 2015", "tests": [ - "assert.isTrue((//gi).test($(\"#target4\").html()), 'message: Italicize the text in your target4 button by adding HTML tags.');", + "assert.isTrue((/#target4<\\/i>/gi).test($(\"#target4\").html()), 'message: Italicize the text in your target4 button by adding HTML tags.');", "assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');", "assert.isFalse((//gi).test($(\"h3\").html()), 'message: Do not alter any other text.');" ],