Merge pull request #2410 from souldreamer/patch-1

[Waypoint: Remove Classes from an element with jQuery] usually expected to not validate if using removeClass() without parameters
This commit is contained in:
Arsen Melikyan
2015-09-06 15:14:37 +04:00

View File

@ -315,7 +315,8 @@
],
"tests": [
"assert($(\".btn-default\").length === 0, 'Remove the <code>btn-default</code> class from all of your <code>button</code> elements.')",
"assert(editor.match(/btn btn-default/g), 'Only use jQuery to remove this class from the element.')"
"assert(editor.match(/btn btn-default/g), 'Only use jQuery to remove this class from the element.')",
"assert(editor.match(/\\.[\\v\\s]*removeClass[\\s\\v]*\\([\\s\\v]*('|\")\\s*btn-default\\s*('|\")[\\s\\v]*\\)/gm), 'Only remove the <code>btn-default</code> class.')"
],
"challengeSeed": [
"fccss",