From 304d36ab478c73789492b79aa67d6566869ad532 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 5 Mar 2019 17:11:27 +0000 Subject: [PATCH] fix(challenge): decrease opacity testString (#34711) --- .../decrease-the-opacity-of-an-element.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md index 098637e072..876ddd98c0 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md @@ -23,7 +23,7 @@ Set the opacity of the anchor tags to 0.7 using links ```yml tests: - text: Your code should set the opacity property to 0.7 on the anchor tags by selecting the class of links. - testString: assert.approximately(parseFloat($('.links').css('opacity')), 0.7, 0.1, 'Your code should set the opacity property to 0.7 on the anchor tags by selecting the class of links.'); + testString: assert(/\.links\s*\{[^}]+opacity\s*:\s*0.7;/.test(code), 'Your code should set the opacity property to 0.7 on the anchor tags by selecting the class of links.'); ```