mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
Assert the number of bouncing elements
This commit is contained in:
parent
05581b507a
commit
56bc714dcc
@ -1327,6 +1327,7 @@
|
||||
],
|
||||
"tests": [
|
||||
"assert($(\".target:nth-child(2)\").hasClass(\"animated\") && $(\".target:nth-child(2)\").hasClass(\"bounce\"), 'message: The second element in your <code>target</code> 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 <code>:nth-child()</code> function to modify these elements.');",
|
||||
"assert(code.match(/<button class=\"btn btn-default target\" id=\"target2\">/g), 'message: Only use jQuery to add these classes to the element.');"
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user