From 9a5ae756acf28dfcd66ddc9c149ec5a81b4b08f2 Mon Sep 17 00:00:00 2001
From: lasjorg <28780271+lasjorg@users.noreply.github.com>
Date: Tue, 18 Feb 2020 19:08:16 +0100
Subject: [PATCH] fix(challenge): check inline style for color (#38211)
* fix(challenge): check inline style for color
* Update curriculum/challenges/english/01-responsive-web-design/basic-css/change-the-color-of-text.english.md
Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
---
.../basic-css/change-the-color-of-text.english.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/change-the-color-of-text.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/change-the-color-of-text.english.md
index 1ebee64142..beaa0d90ed 100644
--- a/curriculum/challenges/english/01-responsive-web-design/basic-css/change-the-color-of-text.english.md
+++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/change-the-color-of-text.english.md
@@ -28,8 +28,8 @@ Change your h2
element's style so that its text color is red.
tests:
- text: Your h2
element should have a style
declaration.
testString: assert($("h2").attr('style'));
- - text: Your h2
element should be red.
- testString: assert($("h2").css("color") === "rgb(255, 0, 0)");
+ - text: Your h2
element should have color set to red
.
+ testString: assert($("h2")[0].style.color === "red");
- text: Your style
declaration should end with a ;
.
testString: assert($("h2").attr('style') && $("h2").attr('style').endsWith(';'));