Update test for "Use Comments to Clarify Code"

Allow blank lines before comment for "Waypoint: Use Comments to Clarify
Code" challenge.
pull/18182/head
Dmytro Yarmak 2016-01-10 18:33:08 +02:00 committed by Berkeley Martinez
parent bb974a666a
commit 2aa789d8e1
1 changed files with 1 additions and 1 deletions

View File

@ -2256,7 +2256,7 @@
"Add a comment at the top of your HTML that says <code>Only change code above this line.</code>"
],
"tests": [
"assert(code.match(/^<!--/) && code.match(/^<!--/g).length > 0, 'message: Start a comment with <code>&#60;!--</code> at the top of your HTML.');",
"assert(code.match(/^\\s*<!--/), 'message: Start a comment with <code>&#60;!--</code> at the top of your HTML.');",
"assert(code.match(/<!--(?!(>|->|.*-->.*this line)).*this line.*-->/gi), 'message: Your comment should have the text <code>Only change code above this line</code>.');",
"assert(code.match(/-->.*\\n+.+/g), 'message: Be sure to close your comment with <code>--&#62;</code>.');",
"assert(code.match(/<!--/g).length === code.match(/-->/g).length, 'message: You should have the same number of comment openers and closers.');"