update test for media query challenge (#16691)
the test fails if there is no space between @media and the parenthesis, even though it is possible to not have a space. Also it doesn't tell you that that is the problem, so it can make the person get stuck trying to figure out what they did wrong, when in fact they were right, like I was for half an hour until I came here to check the test =)
This commit is contained in:
committed by
Stuart Taylor
parent
edd55ea331
commit
731efaaaae
@ -100,7 +100,7 @@
|
||||
],
|
||||
"tests": [
|
||||
"assert($('p').css('font-size') == '10px', 'message: Your <code>p</code> element should have the <code>font-size</code> of 10px when the device <code>height</code> is less than or equal to 800px.');",
|
||||
"assert(code.match(/@media \\(max-height:\\s*?800px\\)/g), 'message: Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.');"
|
||||
"assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/g), 'message: Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
"releasedOn": "Feb 17, 2017",
|
||||
|
Reference in New Issue
Block a user