Change regex in last test to make it less specific.

Closes #5857

The last test will now allow a space before the closing semicolon.
This commit is contained in:
Brandon Eichler
2016-01-04 18:55:56 -06:00
parent 270083d243
commit 52c5cbd764

View File

@ -988,7 +988,7 @@
], ],
"tests": [ "tests": [
"assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end.</code>');", "assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end.</code>');",
"assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.\\2/.test(code), 'message: Use the <code>+</code> operator to build <code>myStr</code>');" "assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.([\"'])/.test(code), 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": "1", "challengeType": "1",