diff --git a/challenges/01-responsive-web-design/basic-css.json b/challenges/01-responsive-web-design/basic-css.json
index c1215859271..2a04c781b60 100644
--- a/challenges/01-responsive-web-design/basic-css.json
+++ b/challenges/01-responsive-web-design/basic-css.json
@@ -20,14 +20,11 @@
"tests": [
{
"text": "Your h2
element should be red.",
- "testString":
- "assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'Your h2
element should be red.');"
+ "testString": "assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'Your h2
element should be red.');"
},
{
- "text":
- "Your style
declaration should end with a ;
.",
- "testString":
- "assert(code.match(/
style
declaration should end with a ;
.');"
+ "text": "Your style
declaration should end with a ;
.",
+ "testString": "assert(code.match(/style
declaration should end with a ;
.');"
}
],
"challengeType": 0,
@@ -141,32 +138,24 @@
],
"tests": [
{
- "text":
- "Remove the style attribute from your h2
element.",
- "testString":
- "assert(!$(\"h2\").attr(\"style\"), 'Remove the style attribute from your h2
element.');"
+ "text": "Remove the style attribute from your h2
element.",
+ "testString": "assert(!$(\"h2\").attr(\"style\"), 'Remove the style attribute from your h2
element.');"
},
{
"text": "Create a style
element.",
- "testString":
- "assert($(\"style\") && $(\"style\").length > 1, 'Create a style
element.');"
+ "testString": "assert($(\"style\") && $(\"style\").length > 1, 'Create a style
element.');"
},
{
"text": "Your h2
element should be blue.",
- "testString":
- "assert($(\"h2\").css(\"color\") === \"rgb(0, 0, 255)\", 'Your h2
element should be blue.');"
+ "testString": "assert($(\"h2\").css(\"color\") === \"rgb(0, 0, 255)\", 'Your h2
element should be blue.');"
},
{
- "text":
- "Ensure that your stylesheet h2
declaration is valid with a semicolon and closing brace.",
- "testString":
- "assert(code.match(/h2\\s*\\{\\s*color\\s*:.*;\\s*\\}/g), 'Ensure that your stylesheet h2
declaration is valid with a semicolon and closing brace.');"
+ "text": "Ensure that your stylesheet h2
declaration is valid with a semicolon and closing brace.",
+ "testString": "assert(code.match(/h2\\s*\\{\\s*color\\s*:.*;\\s*\\}/g), 'Ensure that your stylesheet h2
declaration is valid with a semicolon and closing brace.');"
},
{
- "text":
- "Make sure all your style
elements are valid and have a closing tag.",
- "testString":
- "assert(code.match(/<\\/style>/g) && code.match(/<\\/style>/g).length === (code.match(/