Merge pull request #10402 from oalhait/fix/jQueryHTMLSelectorSingleQuotesFix

added double quotes condition to Target HTML Elements with jQuery cha…
This commit is contained in:
Jonathan
2016-09-04 14:54:19 +01:00
committed by GitHub

View File

@ -142,7 +142,8 @@
],
"tests": [
"assert($(\"button\").hasClass(\"animated\") && $(\"button\").hasClass(\"bounce\"), 'message: Use the jQuery <code>addClass&#40&#41</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,