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 52704829bf..fb4dcb603e 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -642,8 +642,9 @@ "var remainder = 11 % 3;" ], "tests": [ + "assert(/var\\s+?remainder/.test(code), 'message: The variable remainder should be initialized');", "assert(remainder === 2, 'message: The value of remainder should be 2');", - "assert(/var\\s*?remainder\\s*?=\\s*?.*%.*;/.test(code), 'message: You should use the % operator');" + "assert(/\\s+?remainder\\s*?=\\s*?.*%.*;/.test(code), 'message: You should use the % operator');" ], "type": "waypoint", "challengeType": 1,