From 19e4c0fccd4385c2063e555fdafbeae879fe3b1b Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Sat, 12 Aug 2017 22:33:42 +0000 Subject: [PATCH] fix(challenges): Add test to check semicolon (#15756) forces semicolon at the end of inline style declaration Closes #10703 --- seed/challenges/01-responsive-web-design/basic-css.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seed/challenges/01-responsive-web-design/basic-css.json b/seed/challenges/01-responsive-web-design/basic-css.json index 95628d1d82..c0f09e5062 100644 --- a/seed/challenges/01-responsive-web-design/basic-css.json +++ b/seed/challenges/01-responsive-web-design/basic-css.json @@ -50,6 +50,7 @@ "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>", + "Note that it is a good practice to end inline style declarations with a ; .", "
", "Change your h2 element's style so that its text color is red." ], @@ -87,7 +88,8 @@ "" ], "tests": [ - "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/), 'message: Your h2 element should be red.');" + "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/), 'message: Your h2 element should be red.');", + "assert(code.match(/\\s*CatPhotoApp\\s*<\\/h2>/),' message: Your style declaration should end with a ; .');" ], "type": "waypoint", "challengeType": 0,