From 48990fb33a651e5dea013f5cb2a282f8c70576f8 Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Fri, 24 Feb 2017 23:45:22 +0100 Subject: [PATCH] fix(challenge): Fix tests for "Basic JS: Global scope and functions" Since the last test case was triggering on a line from the challenge head, it was necessary to slightly modify the test cases. They now let the expected code pass. --- .../basic-javascript.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index cb82a2cbb4..f188480cd1 100755 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -2436,8 +2436,7 @@ "assert(typeof myGlobal != \"undefined\", 'message: myGlobal should be defined');", "assert(myGlobal === 10, 'message: myGlobal should have a value of 10');", "assert(/var\\s+myGlobal/.test(code), 'message: myGlobal should be declared using the var keyword');", - "assert(typeof oopsGlobal != \"undefined\" && oopsGlobal === 5, 'message: oopsGlobal should have a value of 5');", - "assert(!/var\\s+oopsGlobal/.test(code), 'message: Do not declare oopsGlobal using the var keyword');" + "assert(typeof oopsGlobal != \"undefined\" && oopsGlobal === 5, 'message: oopsGlobal should be a global variable and have a value of 5');" ], "type": "waypoint", "challengeType": 1, @@ -5671,4 +5670,4 @@ "translations": {} } ] -} \ No newline at end of file +}