diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index 1539cd45b9..b7a82a256c 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -381,7 +381,7 @@ ], "tests": [ "assert(!$(\"h2\").attr(\"style\"), 'Remove the style attribute from your h2 element.')", - "assert(($(\"style\").length > 1), 'Create a style element.')", + "assert($(\"style\") && $(\"style\").length > 1, 'Create a style element.')", "assert($(\"h2\").css(\"color\") === \"rgb(0, 0, 255)\", 'Your h2 element should be blue.')", "assert(editor.match(/<\\/style>/g) && editor.match(/<\\/style>/g).length === editor.match(/