Fix first test on add element to boostrap well challenge to check for 3 buttons in each well div

This commit is contained in:
alanbares
2016-09-09 13:18:38 -07:00
parent 02f6158e95
commit 94b19a3f80

View File

@ -2088,7 +2088,7 @@
"</div>" "</div>"
], ],
"tests": [ "tests": [
"assert($(\"div.well\").children(\"button\").length > 5, 'message: Nest three <code>button</code> elements within each of your <code>div</code> elements with class <code>well</code>.');", "assert($(\"div.well:eq(0)\").children(\"button\").length === 3 && $(\"div.well:eq(1)\").children(\"button\").length === 3, 'message: Nest three <code>button</code> elements within each of your <code>div</code> elements with class <code>well</code>.');",
"assert($(\"button\") && $(\"button\").length > 5, 'message: You should have a total of 6 <code>button</code> elements.');", "assert($(\"button\") && $(\"button\").length > 5, 'message: You should have a total of 6 <code>button</code> elements.');",
"assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure all your <code>button</code> elements have closing tags.');" "assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure all your <code>button</code> elements have closing tags.');"
], ],