diff --git a/challenges/03-front-end-libraries/jquery.json b/challenges/03-front-end-libraries/jquery.json index 3c45ca2d14..0b4e3a5836 100644 --- a/challenges/03-front-end-libraries/jquery.json +++ b/challenges/03-front-end-libraries/jquery.json @@ -168,7 +168,8 @@ ], "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(!code.match(/class.*animated/g), 'message: Only use jQuery to add these colors to the element.');", + "assert(code.match(/\\$\\(document\\)\\.ready\\(function.*(\\s|\\n)*.*button.*.addClass.*\\);/g), 'message: Your jQuery code should be within the $(document).ready(); function.');" ], "type": "waypoint", "challengeType": 0,