Fix test in Accessing Obj Properties with Vars

pull/18182/head
Daksh Shah 2016-05-29 12:47:11 +03:00
parent 534f8a9227
commit 4909ce4201
1 changed files with 2 additions and 1 deletions

View File

@ -4002,7 +4002,8 @@
"assert(typeof playerNumber === 'number', 'message: <code>playerNumber</code> should be a number');", "assert(typeof playerNumber === 'number', 'message: <code>playerNumber</code> should be a number');",
"assert(typeof player === 'string', 'message: The variable <code>player</code> should be a string');", "assert(typeof player === 'string', 'message: The variable <code>player</code> should be a string');",
"assert(player === 'Montana', 'message: The value of <code>player</code> should be \"Montana\"');", "assert(player === 'Montana', 'message: The value of <code>player</code> should be \"Montana\"');",
"assert(/testObj\\s*?\\[\\s*playerNumber\\s*\\]/.test(code),'message: You should use bracket notation to access <code>testObj</code>');" "assert(/testObj\\s*?\\[.*?\\]/.test(code),'message: You should use bracket notation to access <code>testObj</code>');",
"assert(/testObj\\s*?\\[\\s*playerNumber\\s*\\]/.test(code),'message: You should be using the variable <code>playerNumber</code> in your bracket notation');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 1, "challengeType": 1,