From 29d5b41b7eb1eb2900e14feb7c06c973d5deb3e4 Mon Sep 17 00:00:00 2001 From: "Alister N. Mada" Date: Tue, 26 Jan 2016 04:52:21 +0700 Subject: [PATCH] Adds test for class selector in Prioritize One Style Over Another --- .../01-front-end-development-certification/html5-and-css.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/01-front-end-development-certification/html5-and-css.json b/challenges/01-front-end-development-certification/html5-and-css.json index 6334f80c839..37f47ed08aa 100644 --- a/challenges/01-front-end-development-certification/html5-and-css.json +++ b/challenges/01-front-end-development-certification/html5-and-css.json @@ -3079,6 +3079,7 @@ ], "tests": [ "assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your h1 element should have the class pink-text.');", + "assert(code.match(/\\.pink-text\\s*\\{\\s*color\\s*:\\s*pink\\s*;\\s*\\}/g), 'message: Your <style> should have a pink-text CSS class with its color set to pink.');", "assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'message: Your h1 element should be pink.');" ], "type": "waypoint",