Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#12611 from AngShiYa/fix/test-case-in-…
Browse files Browse the repository at this point in the history
…basic-js

Update test case in Increment a Number with JavaScript
  • Loading branch information
raisedadead authored Jan 19, 2017
2 parents 0a60247 + daa9380 commit e1fd3b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
],
"tests": [
"assert(myVar === 88, 'message: <code>myVar</code> should equal <code>88</code>');",
"assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: <code>myVar = myVar</code> should be changed');",
"assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: <code>myVar = myVar + 1;</code> should be changed');",
"assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the <code>++</code> operator');",
"assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');"
],
Expand Down

0 comments on commit e1fd3b0

Please sign in to comment.