Skip to content

Commit

Permalink
fix(curriculum): added the acceptance of spaces between 'type' and 'c…
Browse files Browse the repository at this point in the history
…heckbox' to allow a coorect answer (freeCodeCamp#38329)

Co-Authored-By: Denice Veluz <deniceysis.veluz20@myhunter.cuny.edu>
  • Loading branch information
jaredwils and deniceysv committed Apr 19, 2020
1 parent a282c24 commit f86a4b0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ Using the <code>type</code> attribute selector, try to give the checkboxes in Ca
```yml
tests:
- text: The <code>type</code> attribute selector should be used to select the checkboxes.
testString: assert(code.match(/<style>[\s\S]*?\[type=("|')checkbox\1\]\s*?{[\s\S]*?}[\s\S]*?<\/style>/gi));
testString: assert(code.match(/<style>[\s\S]*?\[type[\s\S]*?=[\s\S]*?("|')checkbox\1\]\s*?{[\s\S]*?}[\s\S]*?<\/style>/gi));
- text: The top margins of the checkboxes should be 10px.
testString: assert((function() {var count=0; $("[type='checkbox']").each(function() { if($(this).css('marginTop') === '10px') {count++;}});return (count===3)}()));
- text: The bottom margins of the checkboxes should be 15px.
Expand Down

0 comments on commit f86a4b0

Please sign in to comment.