diff --git a/curriculum/challenges/english/03-front-end-libraries/jquery/target-html-elements-with-selectors-using-jquery.english.md b/curriculum/challenges/english/03-front-end-libraries/jquery/target-html-elements-with-selectors-using-jquery.english.md index 3a6fc1a661..4593a348ce 100644 --- a/curriculum/challenges/english/03-front-end-libraries/jquery/target-html-elements-with-selectors-using-jquery.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/jquery/target-html-elements-with-selectors-using-jquery.english.md @@ -26,10 +26,10 @@ Note that we've already included both the jQuery library and the Animate.css lib ```yml tests: - - text: Use the jQuery addClass() function to give the classes animated and bounce to your button elements. - testString: assert($("button").hasClass("animated") && $("button").hasClass("bounce"), 'Use the jQuery addClass() function to give the classes animated and bounce to your button elements.'); - - text: Only use jQuery to add these colors to the element. - testString: assert(!code.match(/class.*animated/g), 'Only use jQuery to add these colors to the element.'); + - text: 'Use the jQuery addClass() function to give the classes animated and bounce to your button elements.' + testString: 'assert($("button").hasClass("animated") && $("button").hasClass("bounce"), "Use the jQuery addClass() function to give the classes animated and bounce to your button elements.");' + - text: Only use jQuery to add these classes to the element. + testString: 'assert(!code.match(/class.*animated/g), "Only use jQuery to add these classes to the element.");' - text: Your jQuery code should be within the $(document).ready(); function. testString: assert(code.match(/\$\(document\)\.ready\(function.*(\s|\n)*.*button.*.addClass.*\);/g), 'Your jQuery code should be within the $(document).ready(); function.');