From 0a560a146244bcefb260c08af90d6ea57d640849 Mon Sep 17 00:00:00 2001 From: cdrainxv Date: Thu, 16 Feb 2017 15:31:11 -0700 Subject: [PATCH] modified the test case to include color value --- challenges/01-responsive-web-design/basic-css.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/01-responsive-web-design/basic-css.json b/challenges/01-responsive-web-design/basic-css.json index c2d63f40fd..41ae32d9f9 100644 --- a/challenges/01-responsive-web-design/basic-css.json +++ b/challenges/01-responsive-web-design/basic-css.json @@ -60,7 +60,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." ], @@ -98,7 +98,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,