From 71055079107150617b754e53856220a1d61bf937 Mon Sep 17 00:00:00 2001 From: Prateek Surana Date: Wed, 27 Jun 2018 16:34:32 +0530 Subject: [PATCH] fix(challenge): Updated tests to avoid confusion (#57) --- .../01-responsive-web-design/applied-visual-design.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/challenges/01-responsive-web-design/applied-visual-design.json b/challenges/01-responsive-web-design/applied-visual-design.json index 401da790d..dc9dcda65 100644 --- a/challenges/01-responsive-web-design/applied-visual-design.json +++ b/challenges/01-responsive-web-design/applied-visual-design.json @@ -2637,25 +2637,25 @@ "text": "The background-color property of the heart:after selector should be pink.", "testString": - "assert(code.match(/\\.heart:after\\s*?{\\s*?background-color:\\s*?pink;/gi), 'The background-color property of the heart:after selector should be pink.');" + "assert(code.match(/\\.heart:after\\s*?{\\s*?background-color\\s*?:\\s*?pink\\s*?;/gi), 'The background-color property of the heart:after selector should be pink.');" }, { "text": "The border-radius of the heart:after selector should be 50%.", "testString": - "assert(code.match(/border-radius:\\s*?50%/gi).length == 2, 'The border-radius of the heart:after selector should be 50%.');" + "assert(code.match(/border-radius\\s*?:\\s*?50%/gi).length == 2, 'The border-radius of the heart:after selector should be 50%.');" }, { "text": "The transform property for the heart class should use a rotate() function set to -45 degrees.", "testString": - "assert(code.match(/transform:\\s*?rotate\\(-45deg\\)/gi), 'The transform property for the heart class should use a rotate() function set to -45 degrees.');" + "assert(code.match(/transform\\s*?:\\s*?rotate\\(\\s*?-45deg\\s*?\\)/gi), 'The transform property for the heart class should use a rotate() function set to -45 degrees.');" }, { "text": "The content of the heart:before selector should be an empty string.", "testString": - "assert(code.match(/\\.heart:before\\s*?{\\s*?content:\\s*?(\"|')\\1;/gi), 'The content of the heart:before selector should be an empty string.');" + "assert(code.match(/\\.heart:before\\s*?{\\s*?content\\s*?:\\s*?(\"|')\\1\\s*?;/gi), 'The content of the heart:before selector should be an empty string.');" } ], "solutions": [],