Merge pull request #13574 from Greenheart/fix/tests-for-js-global-scope-functions

fix(challenge): Fix tests for "Basic JS: Global scope and functions"
pull/18182/head
Dylan 2017-02-25 11:18:13 -06:00 committed by GitHub
commit ba1093c42f
1 changed files with 1 additions and 2 deletions

View File

@ -2436,8 +2436,7 @@
"assert(typeof myGlobal != \"undefined\", 'message: <code>myGlobal</code> should be defined');",
"assert(myGlobal === 10, 'message: <code>myGlobal</code> should have a value of <code>10</code>');",
"assert(/var\\s+myGlobal/.test(code), 'message: <code>myGlobal</code> should be declared using the <code>var</code> keyword');",
"assert(typeof oopsGlobal != \"undefined\" && oopsGlobal === 5, 'message: <code>oopsGlobal</code> should have a value of <code>5</code>');",
"assert(!/var\\s+oopsGlobal/.test(code), 'message: Do not declare <code>oopsGlobal</code> using the <code>var</code> keyword');"
"assert(typeof oopsGlobal != \"undefined\" && oopsGlobal === 5, 'message: <code>oopsGlobal</code> should be a global variable and have a value of <code>5</code>');"
],
"type": "waypoint",
"challengeType": 1,