Merge pull request #9143 from robjloranger/fix/missing-test-basic-js

fix for Appending variables to strings
This commit is contained in:
Jonathan
2016-06-15 20:43:27 +01:00
committed by GitHub

View File

@ -1263,7 +1263,7 @@
],
"tests": [
"assert(typeof someAdjective !== 'undefined' && someAdjective.length > 2, 'message: <code>someAdjective</code> should be set to a string at least 3 characters long');",
"assert(code.match(/\\w\\s*\\+=\\s*someAdjective\\s*;/).length > 0, 'message: Append <code>someAdjective</code> to <code>myStr</code> using the <code>+=</code> operator');"
"assert(code.match(/myStr\\s*\\+=\\s*someAdjective\\s*/).length > 0, 'message: Append <code>someAdjective</code> to <code>myStr</code> using the <code>+=</code> operator');"
],
"type": "waypoint",
"challengeType": 1,