From daa93805965831e6319c00d2ad1931b19824c483 Mon Sep 17 00:00:00 2001 From: Ang Shi Ya Date: Thu, 19 Jan 2017 19:00:49 +0800 Subject: [PATCH] Update test case in Increment a Number with JavaScript --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index cae402a17e..b3e286a351 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -523,7 +523,7 @@ ], "tests": [ "assert(myVar === 88, 'message: myVar should equal 88');", - "assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: myVar = myVar should be changed');", + "assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: myVar = myVar + 1; should be changed');", "assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the ++ operator');", "assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');" ],