From aac1c5837430473affa7c6228b6ff2ba6ebece90 Mon Sep 17 00:00:00 2001 From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Date: Sat, 30 Nov 2019 20:09:48 -0800 Subject: [PATCH] fix(curriculum): make last test more robust for Uncomment HTML challenge (#37843) * fix: correct last test * fix: remove forgotten console.log Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> --- .../basic-html-and-html5/uncomment-html.english.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/uncomment-html.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/uncomment-html.english.md index a6a9f02a83..4776d48a6a 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/uncomment-html.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/uncomment-html.english.md @@ -23,14 +23,14 @@ Uncomment your h1, h2 and p elements. ```yml tests: - - text: Your h1 element should be visible on your page by uncommenting it. + - text: Your h1 element should be visible on the page by uncommenting it. testString: assert($("h1").length > 0); - - text: Your h2 element should be visible on your page by uncommenting it. + - text: Your h2 element should be visible on the page by uncommenting it. testString: assert($("h2").length > 0); - - text: Your p element should be visible on your page by uncommenting it. + - text: Your p element should be visible on the page by uncommenting it. testString: assert($("p").length > 0); - - text: All trailing comment tags should be deleted, i.e. -->. - testString: assert(!/[^fc]-->/gi.test(code.replace(/ *). + testString: assert(!$('*:contains("-->")')[1]); ```