From 894d3777bc7771ef22f7b0cdb2b44eaaf98674d4 Mon Sep 17 00:00:00 2001 From: Jaka Kranjc Date: Tue, 5 Jun 2018 18:29:30 +0200 Subject: [PATCH] fix(seed): responsive-web-design: make css tests case insensitive (#17430) --- .../responsive-web-design.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/seed/challenges/01-responsive-web-design/responsive-web-design.json b/seed/challenges/01-responsive-web-design/responsive-web-design.json index ace65c7422..f1015442a7 100644 --- a/seed/challenges/01-responsive-web-design/responsive-web-design.json +++ b/seed/challenges/01-responsive-web-design/responsive-web-design.json @@ -25,7 +25,7 @@ }, { "text": "Declare a @media query for devices with a height less than or equal to 800px.", - "testString": "assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/g), 'Declare a @media query for devices with a height less than or equal to 800px.');" + "testString": "assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/gi), 'Declare a @media query for devices with a height less than or equal to 800px.');" } ], "releasedOn": "Feb 17, 2017", @@ -83,7 +83,7 @@ "tests": [ { "text": "Your img tag should have a max-width set to 100%.", - "testString": "assert(code.match(/max-width:\\s*?100%;/g), 'Your img tag should have a max-width set to 100%.');" + "testString": "assert(code.match(/max-width:\\s*?100%;/gi), 'Your img tag should have a max-width set to 100%.');" }, { "text": "Your img tag should have a display set to block.", @@ -91,7 +91,7 @@ }, { "text": "Your img tag should have a height set to auto.", - "testString": "assert(code.match(/height:\\s*?auto;/g), 'Your img tag should have a height set to auto.');" + "testString": "assert(code.match(/height:\\s*?auto;/gi), 'Your img tag should have a height set to auto.');" } ], "releasedOn": "Feb 17, 2017", @@ -195,11 +195,11 @@ "tests": [ { "text": "Your h2 tag should have a width of 80vw.", - "testString": "assert(code.match(/h2\\s*?{\\s*?width:\\s*?80vw;\\s*?}/g), 'Your h2 tag should have a width of 80vw.');" + "testString": "assert(code.match(/h2\\s*?{\\s*?width:\\s*?80vw;\\s*?}/gi), 'Your h2 tag should have a width of 80vw.');" }, { "text": "Your p tag should have a width of 75vmin.", - "testString": "assert(code.match(/p\\s*?{\\s*?width:\\s*?75vmin;\\s*?}/g), 'Your p tag should have a width of 75vmin.');" + "testString": "assert(code.match(/p\\s*?{\\s*?width:\\s*?75vmin;\\s*?}/gi), 'Your p tag should have a width of 75vmin.');" } ], "releasedOn": "Feb 17, 2017", @@ -237,4 +237,4 @@ } } ] -} \ No newline at end of file +}