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(';'));