From 6dccffeaf5e44c6bc5fbd1cdd51c2a47f86bdca6 Mon Sep 17 00:00:00 2001 From: Logan Tegman Date: Sun, 27 Dec 2015 13:49:27 -0800 Subject: [PATCH] Fix Waypoint Jquery Target Parent Test --- .../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 2ef3e015c8..6b8b2ef4ce 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -781,7 +781,7 @@ ], "tests": [ "assert($(\"#left-well\").css(\"background-color\") === 'red' || $(\"#left-well\").css(\"background-color\") === 'rgb(255, 0, 0)' || $(\"#left-well\").css(\"background-color\").toLowerCase() === '#ff0000' || $(\"#left-well\").css(\"background-color\").toLowerCase() === '#f00', 'message: Your left-well element should have a red background.');", - "assert(code.match(/\\.parent\\(\\)\\.css/g), 'message: You should use the .parent() function to modify this element.');", + "assert(code.match(/\\.parent\\s*\\(\\)\\s*\\.css/g), 'message: You should use the .parent() function to modify this element.');", "assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\s*?#target1\\s*?(?:'|\")\\s*?\\)\\.parent/gi), 'message: The .parent() method should be called on the #target1 element.');", "assert(code.match(/
/g), 'message: Only use jQuery to add these classes to the element.');" ],