From addb6c4e69a9554dbd53af6b28fc701b4079d918 Mon Sep 17 00:00:00 2001 From: Manish Giri Date: Mon, 21 Aug 2017 04:06:14 -0400 Subject: [PATCH] fix(challenges): Remove double quote requirement in jQuery selectors --- seed/challenges/03-front-end-libraries/jquery.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/seed/challenges/03-front-end-libraries/jquery.json b/seed/challenges/03-front-end-libraries/jquery.json index 73be2fd4a7..a2996acd2c 100644 --- a/seed/challenges/03-front-end-libraries/jquery.json +++ b/seed/challenges/03-front-end-libraries/jquery.json @@ -108,8 +108,7 @@ "jQuery often selects an HTML element with a selector, then does something to that element.", "For example, let's make all of your button elements bounce. Just add this code inside your document ready function:", "$(\"button\").addClass(\"animated bounce\");", - "Note that we've already included both the jQuery library and the Animate.css library in the background so that you can use them in the editor. So you are using jQuery to apply the Animate.css bounce class to your button elements.", - "Additionally make sure to use $(\"button\").addClass(\"animated bounce\"); instead of $('button').addClass(\"animated bounce\"); since single-quote selectors will not pass our tests." + "Note that we've already included both the jQuery library and the Animate.css library in the background so that you can use them in the editor. So you are using jQuery to apply the Animate.css bounce class to your button elements." ], "challengeSeed": [ "fccss", @@ -144,8 +143,7 @@ ], "tests": [ "assert($(\"button\").hasClass(\"animated\") && $(\"button\").hasClass(\"bounce\"), 'message: Use the jQuery addClass() function to give the classes animated and bounce to your button elements.');", - "assert(!code.match(/class.*animated/g), 'message: Only use jQuery to add these colors to the element.');", - "assert(/'/g.test(code) === false , 'message: Only use double quotes in your jQuery code, as is stated in the jQuery style guide.');" + "assert(!code.match(/class.*animated/g), 'message: Only use jQuery to add these colors to the element.');" ], "type": "waypoint", "challengeType": 0,