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>
This commit is contained in:
Randell Dawson
2019-11-30 20:09:48 -08:00
committed by Manish Giri
parent 58ca8ddf2a
commit aac1c58374

View File

@ -23,14 +23,14 @@ Uncomment your <code>h1</code>, <code>h2</code> and <code>p</code> elements.
```yml ```yml
tests: tests:
- text: Your <code>h1</code> element should be visible on your page by uncommenting it. - text: Your <code>h1</code> element should be visible on the page by uncommenting it.
testString: assert($("h1").length > 0); testString: assert($("h1").length > 0);
- text: Your <code>h2</code> element should be visible on your page by uncommenting it. - text: Your <code>h2</code> element should be visible on the page by uncommenting it.
testString: assert($("h2").length > 0); testString: assert($("h2").length > 0);
- text: Your <code>p</code> element should be visible on your page by uncommenting it. - text: Your <code>p</code> element should be visible on the page by uncommenting it.
testString: assert($("p").length > 0); testString: assert($("p").length > 0);
- text: All trailing comment tags should be deleted&#44; i.e. <code>--&#62;</code>. - text: No trailing comment tags should be visible on the page (i.e. <code>--></code>).
testString: assert(!/[^fc]-->/gi.test(code.replace(/ *<!--[^fc]*\n/g,''))); testString: assert(!$('*:contains("-->")')[1]);
``` ```