From 7ad4ef5b4445ebe2ebb1e40db1a942bda2d5685d Mon Sep 17 00:00:00 2001 From: "Alister N. Mada" Date: Wed, 10 Feb 2016 06:29:11 +0700 Subject: [PATCH] Fix test for Iterate Through An Array With For Loop --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index d4d79c7a3c..87c920c92d 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -4200,7 +4200,7 @@ "tests": [ "assert(code.match(/var\\s*total\\s*=\\s*0\\s*;/), 'message: total should be declared and initialized to 0');", "assert(total === 20, 'message: total should equal 20');", - "assert(code.match(/for\\s*\\(/g).length > 1 && code.match(/\\+=\\s*myArr/), 'message: You should use a for loop to iterate through myArr');", + "assert(code.match(/for\\s*\\(/g).length > 1 && code.match(/myArr\\s*\\[/), 'message: You should use a for loop to iterate through myArr');", "assert(!code.match(/total[\\s\\+\\-]*=\\s*(\\d(?!\\s*;)|[1-9])/g), 'message: Do not set total to 20 directly');" ], "type": "waypoint",