From c72e1fdd5f3be282f0cdc5b5dd841f1323e0a818 Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sun, 8 Apr 2018 22:28:19 +0100 Subject: [PATCH] Merge pull request #2 from Bouncey/fix/testFormatting Correct test formatting --- .../applied-accessibility.json | 280 +-- .../applied-visual-design.json | 476 ++--- .../01-responsive-web-design/basic-css.json | 584 +++--- .../basic-html-and-html5.json | 408 ++-- .../01-responsive-web-design/css-flexbox.json | 140 +- .../01-responsive-web-design/css-grid.json | 92 +- .../responsive-web-design.json | 36 +- .../basic-algorithm-scripting.json | 428 ++-- .../basic-data-structures.json | 284 +-- .../basic-javascript.json | 1752 ++++++++--------- .../debugging.json | 124 +- .../es6.json | 312 +-- .../functional-programming.json | 344 ++-- .../intermediate-algorithm-scripting.json | 492 ++--- ...gorithms-and-data-structures-projects.json | 304 +-- .../object-oriented-programming.json | 258 +-- .../regular-expressions.json | 652 +++--- 17 files changed, 3483 insertions(+), 3483 deletions(-) diff --git a/packages/learn/seed/challenges/01-responsive-web-design/applied-accessibility.json b/packages/learn/seed/challenges/01-responsive-web-design/applied-accessibility.json index 0288bcc303..812516e905 100644 --- a/packages/learn/seed/challenges/01-responsive-web-design/applied-accessibility.json +++ b/packages/learn/seed/challenges/01-responsive-web-design/applied-accessibility.json @@ -17,8 +17,8 @@ ], "tests": [ { - "text": "Your img tag should have an alt attribute, and it should not be empty.'", - "testString": "assert($('img').attr('alt'), 'Your img tag should have an alt attribute, and it should not be empty.')" + "text": "Your img tag should have an alt attribute, and it should not be empty.", + "testString": "assert($('img').attr('alt'), 'Your img tag should have an alt attribute, and it should not be empty.');" } ], "solutions": [], @@ -55,12 +55,12 @@ ], "tests": [ { - "text": "Your img tag should have an alt attribute.'", - "testString": "assert(!($('img').attr('alt') == undefined), 'Your img tag should have an alt attribute.')" + "text": "Your img tag should have an alt attribute.", + "testString": "assert(!($('img').attr('alt') == undefined), 'Your img tag should have an alt attribute.');" }, { - "text": "The alt attribute should be set to an empty string.'", - "testString": "assert($('img').attr('alt') == '', 'The alt attribute should be set to an empty string.')" + "text": "The alt attribute should be set to an empty string.", + "testString": "assert($('img').attr('alt') == '', 'The alt attribute should be set to an empty string.');" } ], "solutions": [], @@ -108,12 +108,12 @@ ], "tests": [ { - "text": "Your code should have six h3 tags.'", - "testString": "assert($('h3').length === 6, 'Your code should have six h3 tags.')" + "text": "Your code should have six h3 tags.", + "testString": "assert($('h3').length === 6, 'Your code should have six h3 tags.');" }, { - "text": "Your code should not have any h5 tags.'", - "testString": "assert($('h5').length === 0, 'Your code should not have any h5 tags.')" + "text": "Your code should not have any h5 tags.", + "testString": "assert($('h5').length === 0, 'Your code should not have any h5 tags.');" } ], "solutions": [], @@ -163,12 +163,12 @@ ], "tests": [ { - "text": "Your code should have one main tag.'", - "testString": "assert($('main').length == 1, 'Your code should have one main tag.')" + "text": "Your code should have one main tag.", + "testString": "assert($('main').length == 1, 'Your code should have one main tag.');" }, { - "text": "The main tags should be between the closing header tag and the opening footer tag.'", - "testString": "assert(code.match(/<\\/header>\\s*?
\\s*?<\\/main>/gi), 'The main tags should be between the closing header tag and the opening footer tag.')" + "text": "The main tags should be between the closing header tag and the opening footer tag.", + "testString": "assert(code.match(/<\\/header>\\s*?
\\s*?<\\/main>/gi), 'The main tags should be between the closing header tag and the opening footer tag.');" } ], "solutions": [], @@ -210,12 +210,12 @@ ], "tests": [ { - "text": "Your code should have three article tags.'", - "testString": "assert($('article').length == 3, 'Your code should have three article tags.')" + "text": "Your code should have three article tags.", + "testString": "assert($('article').length == 3, 'Your code should have three article tags.');" }, { - "text": "Your code should not have any div tags.'", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.')" + "text": "Your code should not have any div tags.", + "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" } ], "solutions": [], @@ -269,20 +269,20 @@ ], "tests": [ { - "text": "Your code should have one header tag.'", - "testString": "assert($('header').length == 1, 'Your code should have one header tag.')" + "text": "Your code should have one header tag.", + "testString": "assert($('header').length == 1, 'Your code should have one header tag.');" }, { - "text": "Your header tags should wrap around the h1.'", - "testString": "assert($('header').children('h1').length == 1, 'Your header tags should wrap around the h1.')" + "text": "Your header tags should wrap around the h1.", + "testString": "assert($('header').children('h1').length == 1, 'Your header tags should wrap around the h1.');" }, { - "text": "Your code should not have any div tags.'", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.')" + "text": "Your code should not have any div tags.", + "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" }, { - "text": "Make sure your header element has a closing tag.'", - "testString": "assert(code.match(/<\\/header>/g) && code.match(/<\\/header>/g).length === code.match(/
/g).length, 'Make sure your header element has a closing tag.')" + "text": "Make sure your header element has a closing tag.", + "testString": "assert(code.match(/<\\/header>/g) && code.match(/<\\/header>/g).length === code.match(/
/g).length, 'Make sure your header element has a closing tag.');" } ], "solutions": [], @@ -339,20 +339,20 @@ ], "tests": [ { - "text": "Your code should have one nav tag.'", - "testString": "assert($('nav').length == 1, 'Your code should have one nav tag.')" + "text": "Your code should have one nav tag.", + "testString": "assert($('nav').length == 1, 'Your code should have one nav tag.');" }, { - "text": "Your nav tags should wrap around the ul and its list items.'", - "testString": "assert($('nav').children('ul').length == 1, 'Your nav tags should wrap around the ul and its list items.')" + "text": "Your nav tags should wrap around the ul and its list items.", + "testString": "assert($('nav').children('ul').length == 1, 'Your nav tags should wrap around the ul and its list items.');" }, { - "text": "Your code should not have any div tags.'", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.')" + "text": "Your code should not have any div tags.", + "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" }, { - "text": "Make sure your nav element has a closing tag.'", - "testString": "assert(code.match(/<\\/nav>/g) && code.match(/<\\/nav>/g).length === code.match(/