From d8fdaea661de68d5862684398c6f28404df52476 Mon Sep 17 00:00:00 2001 From: Neenad Ingole Date: Mon, 26 Feb 2018 18:07:43 +0530 Subject: [PATCH] fix(seed): message update to the test (#16718) --- challenges/03-front-end-libraries/jquery.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/jquery.json b/challenges/03-front-end-libraries/jquery.json index 3c45ca2d14e..0b4e3a58362 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,