diff --git a/challenges/01-responsive-web-design/basic-css.json b/challenges/01-responsive-web-design/basic-css.json index 6876eaf14f..50551ca39c 100644 --- a/challenges/01-responsive-web-design/basic-css.json +++ b/challenges/01-responsive-web-design/basic-css.json @@ -49,7 +49,7 @@ "We can do this by changing the style of your h2 element.", "The style that is responsible for the color of an element's text is the \"color\" style.", "Here's how you would set your h2 element's text color to blue:", - "<h2 style=\"color: blue\">CatPhotoApp</h2>", + "<h2 style=\"color: blue;\">CatPhotoApp</h2>", "
", "Change your h2 element's style so that its text color is red." ], @@ -87,7 +87,7 @@ "" ], "tests": [ - "assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'message: Your h2 element should be red.');" + "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/) || code.match(/\\s*CatPhotoApp\\s*<\\/h2>/), 'message: Your h2 element should be red.');" ], "type": "waypoint", "challengeType": 0,