diff --git a/seed/challenges/03-front-end-libraries/sass.json b/seed/challenges/03-front-end-libraries/sass.json index 7cb6986b6e..41c4a0beab 100644 --- a/seed/challenges/03-front-end-libraries/sass.json +++ b/seed/challenges/03-front-end-libraries/sass.json @@ -214,11 +214,11 @@ "
" ], "tests": [ - "assert(code.match(/@mixin\\s+?border-stroke\\(\\$val\\)\\s*?{/gi), 'message: Your code should declare amixin
named border-stroke
which has a parameter named $val
.');",
- "assert(code.match(/@if\\s+?\\$val\\s*?===?\\s*?light\\s*?{\\s*?border:\\s*?1px\\s+?solid\\s+?black;\\s*?}/gi), 'message: Your mixin
should have an @if
statement to check if $val
is light, and to set the border
to 1px solid black.');",
- "assert(code.match(/@else\\s+?if\\s+?\\$val\\s*?===?\\s*?medium\\s*?{\\s*?border:\\s*?3px\\s+?solid\\s+?black;\\s*?}/gi), 'message: Your mixin
should have an @else if
statement to check if $val
is medium, and to set the border
to 3px solid black.');",
- "assert(code.match(/@else\\s+?if\\s+?\\$val\\s*?===?\\s*?heavy\\s*?{\\s*?border:\\s*?6px\\s+?solid\\s+?black;\\s*?}/gi), 'message: Your mixin
should have an @else if
statement to check if $val
is heavy, and to set the border
to 6px solid black.');",
- "assert(code.match(/@else\\s*?{\\s*?border:\\s*?none;\\s*?}/gi), 'message: Your mixin
should have an @else
statement to set the border
to none.');"
+ "assert(code.match(/@mixin\\s+?border-stroke\\s*?\\(\\s*?\\$val\\s*?\\)\\s*?{/gi), 'message: Your code should declare a mixin
named border-stroke
which has a parameter named $val
.');",
+ "assert(code.match(/@if\\s+?\\$val\\s*?===?\\s*?light\\s*?{\\s*?border\\s*?:\\s*?1px\\s+?solid\\s+?black\\s*?;\\s*?}/gi), 'message: Your mixin
should have an @if
statement to check if $val
is light, and to set the border
to 1px solid black.');",
+ "assert(code.match(/@else\\s+?if\\s+?\\$val\\s*?===?\\s*?medium\\s*?{\\s*?border\\s*?:\\s*?3px\\s+?solid\\s+?black\\s*?;\\s*?}/gi), 'message: Your mixin
should have an @else if
statement to check if $val
is medium, and to set the border
to 3px solid black.');",
+ "assert(code.match(/@else\\s+?if\\s+?\\$val\\s*?===?\\s*?heavy\\s*?{\\s*?border\\s*?:\\s*?6px\\s+?solid\\s+?black\\s*?;\\s*?}/gi), 'message: Your mixin
should have an @else if
statement to check if $val
is heavy, and to set the border
to 6px solid black.');",
+ "assert(code.match(/@else\\s*?{\\s*?border\\s*?:\\s*?none\\s*?;\\s*?}/gi), 'message: Your mixin
should have an @else
statement to set the border
to none.');"
],
"solutions": [],
"hints": [],