From d340522f9e673ed26e3d9830d13294fae4ce4ecc Mon Sep 17 00:00:00 2001 From: techstonia Date: Tue, 28 Mar 2017 22:49:28 +0300 Subject: [PATCH] Assert the number of bouncing elements --- challenges/03-front-end-libraries/jquery.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/03-front-end-libraries/jquery.json b/challenges/03-front-end-libraries/jquery.json index b38e0c5d19..fac9c93b67 100644 --- a/challenges/03-front-end-libraries/jquery.json +++ b/challenges/03-front-end-libraries/jquery.json @@ -1327,6 +1327,7 @@ ], "tests": [ "assert($(\".target:nth-child(2)\").hasClass(\"animated\") && $(\".target:nth-child(2)\").hasClass(\"bounce\"), 'message: The second element in your target elements should bounce.');", + "assert($(\".animated.bounce\").length === 2, 'message: Only two elements should bounce.');", "assert(code.match(/\\:nth-child\\(/g), 'message: You should use the :nth-child() function to modify these elements.');", "assert(code.match(/