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 e13e494890..bfc855c673 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
@@ -25,10 +25,12 @@ Change your h2
element's style so that its text color is red.
```yml
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)", 'Your h2
element should be red.');
+ testString: assert($("h2").css("color") === "rgb(255, 0, 0)");
- text: Your style
declaration should end with a ;
.
- testString: assert(code.match(/
style
declaration should end with a ;
.');
+ testString: assert($("h2").attr('style') && $("h2").attr('style').endsWith(';'));
```