fix(seed): responsive-web-design: make css tests case insensitive (#17430)

This commit is contained in:
Jaka Kranjc
2018-06-05 18:29:30 +02:00
committed by mrugesh mohapatra
parent 638429e0b0
commit 894d3777bc

View File

@ -25,7 +25,7 @@
}, },
{ {
"text": "Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.", "text": "Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.",
"testString": "assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/g), 'Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.');" "testString": "assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/gi), 'Declare a <code>@media</code> query for devices with a <code>height</code> less than or equal to 800px.');"
} }
], ],
"releasedOn": "Feb 17, 2017", "releasedOn": "Feb 17, 2017",
@ -83,7 +83,7 @@
"tests": [ "tests": [
{ {
"text": "Your <code>img</code> tag should have a <code>max-width</code> set to 100%.", "text": "Your <code>img</code> tag should have a <code>max-width</code> set to 100%.",
"testString": "assert(code.match(/max-width:\\s*?100%;/g), 'Your <code>img</code> tag should have a <code>max-width</code> set to 100%.');" "testString": "assert(code.match(/max-width:\\s*?100%;/gi), 'Your <code>img</code> tag should have a <code>max-width</code> set to 100%.');"
}, },
{ {
"text": "Your <code>img</code> tag should have a <code>display</code> set to block.", "text": "Your <code>img</code> tag should have a <code>display</code> set to block.",
@ -91,7 +91,7 @@
}, },
{ {
"text": "Your <code>img</code> tag should have a <code>height</code> set to auto.", "text": "Your <code>img</code> tag should have a <code>height</code> set to auto.",
"testString": "assert(code.match(/height:\\s*?auto;/g), 'Your <code>img</code> tag should have a <code>height</code> set to auto.');" "testString": "assert(code.match(/height:\\s*?auto;/gi), 'Your <code>img</code> tag should have a <code>height</code> set to auto.');"
} }
], ],
"releasedOn": "Feb 17, 2017", "releasedOn": "Feb 17, 2017",
@ -195,11 +195,11 @@
"tests": [ "tests": [
{ {
"text": "Your <code>h2</code> tag should have a <code>width</code> of 80vw.", "text": "Your <code>h2</code> tag should have a <code>width</code> of 80vw.",
"testString": "assert(code.match(/h2\\s*?{\\s*?width:\\s*?80vw;\\s*?}/g), 'Your <code>h2</code> tag should have a <code>width</code> of 80vw.');" "testString": "assert(code.match(/h2\\s*?{\\s*?width:\\s*?80vw;\\s*?}/gi), 'Your <code>h2</code> tag should have a <code>width</code> of 80vw.');"
}, },
{ {
"text": "Your <code>p</code> tag should have a <code>width</code> of 75vmin.", "text": "Your <code>p</code> tag should have a <code>width</code> of 75vmin.",
"testString": "assert(code.match(/p\\s*?{\\s*?width:\\s*?75vmin;\\s*?}/g), 'Your <code>p</code> tag should have a <code>width</code> of 75vmin.');" "testString": "assert(code.match(/p\\s*?{\\s*?width:\\s*?75vmin;\\s*?}/gi), 'Your <code>p</code> tag should have a <code>width</code> of 75vmin.');"
} }
], ],
"releasedOn": "Feb 17, 2017", "releasedOn": "Feb 17, 2017",