Skip to content

Commit

Permalink
fix(seed): Add test for checking the length of buttons is 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gondar00 committed Mar 24, 2018
1 parent ebfbfb6 commit 3b1c821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/challenges/03-front-end-libraries/bootstrap.json
Expand Up @@ -392,7 +392,7 @@
"</div>"
],
"tests": [
"assert(new RegExp(\"like\",\"gi\").test($(\"button\").text()), 'message: Create a new <code>button</code> element with the text \"Like\".');",
"assert(new RegExp(\"like\",\"gi\").test($(\"button\").text()) && ($(\"img.img-responsive + button.btn\").length > 0), 'message: Create a new <code>button</code> element with the text \"Like\".');",
"assert($(\"button\").hasClass(\"btn\"), 'message: Your new button should have the class <code>btn</code>.');",
"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 a closing tag.');"
],
Expand Down

0 comments on commit 3b1c821

Please sign in to comment.