From 7f4b440f64ea7127fc8f7c2f37a155ed430ca46e Mon Sep 17 00:00:00 2001 From: mail-liam <30469495+mail-liam@users.noreply.github.com> Date: Tue, 6 Nov 2018 08:23:01 +1100 Subject: [PATCH] Fix typo in test. Colors -> classes (#21108) --- ...t-html-elements-with-selectors-using-jquery.english.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.');