From 47785400726277f6b580a96da3842b5baf4ab792 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 2 Dec 2015 17:02:37 -0800 Subject: [PATCH] Fix broken tests Should use editor.getValue() or `code` when you need code as a string. --- seed/challenges/html5-and-css.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/seed/challenges/html5-and-css.json b/seed/challenges/html5-and-css.json index 4cf534a258..e99acf7840 100644 --- a/seed/challenges/html5-and-css.json +++ b/seed/challenges/html5-and-css.json @@ -156,7 +156,7 @@ "assert($(\"h1\").length > 0, 'message: Make your h1 element visible on your page by uncommenting it.');", "assert($(\"h2\").length > 0, 'message: Make your h2 element visible on your page by uncommenting it.');", "assert($(\"p\").length > 0, 'message: Make your p element visible on your page by uncommenting it.');", - "assert(!new RegExp(\"-->\", 'message: gi').test(editor), 'Be sure to delete all trailing comment tags, i.e. -->.');" + "assert(!new RegExp(\"-->\", \"gi\").test(code), 'message: Be sure to delete all trailing comment tags, i.e. -->.');" ], "challengeSeed": [ "\", \"gi\").test(editor), 'message: Be sure to close your comment by adding -->.');" + "assert(new RegExp(\"\", \"gi\").test(code), 'message: Be sure to close your comment by adding -->.');" ], "challengeSeed": [ "",