Merge pull request #10412 from dhcodes/fix/improved-test-disabling-element-jQuery

Improve test on jQuery disable challenge
This commit is contained in:
Logan Tegman
2016-09-13 16:38:38 -07:00
committed by GitHub

View File

@ -769,7 +769,7 @@
"tests": [ "tests": [
"assert($(\"#target1\") && $(\"#target1\").prop(\"disabled\"), 'message: Disable your <code>target1</code> button.');", "assert($(\"#target1\") && $(\"#target1\").prop(\"disabled\"), 'message: Disable your <code>target1</code> button.');",
"assert($(\"#target2\") && !$(\"#target2\").prop(\"disabled\"), 'message: Do not disable any other buttons.');", "assert($(\"#target2\") && !$(\"#target2\").prop(\"disabled\"), 'message: Do not disable any other buttons.');",
"assert(!code.match(/disabled>/g), 'message: Only use jQuery to add these classes to the element.');" "assert(!code.match(/disabled[^<]*>/g), 'message: Only use jQuery to add these classes to the element.');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 0, "challengeType": 0,