Merge pull request #10402 from oalhait/fix/jQueryHTMLSelectorSingleQuotesFix
added double quotes condition to Target HTML Elements with jQuery cha…pull/18182/head
commit
d13c61e9fe
|
@ -142,7 +142,8 @@
|
|||
],
|
||||
"tests": [
|
||||
"assert($(\"button\").hasClass(\"animated\") && $(\"button\").hasClass(\"bounce\"), 'message: Use the jQuery <code>addClass()</code> function to give the classes <code>animated</code> and <code>bounce</code> to your <code>button</code> elements.');",
|
||||
"assert(!code.match(/class.*animated/g), 'message: Only use jQuery to add these classes to the element.');"
|
||||
"assert(!code.match(/class.*animated/g), 'message: Only use jQuery to add these classes to the element.');",
|
||||
"assert(/'/g.test(code) === false , 'message: Only use double quotes in your jQuery code, as is stated in the jQuery style guide.');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
"challengeType": 0,
|
||||
|
|
Loading…
Reference in New Issue