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 ab3140d81b0..495f1c66303 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -316,7 +316,8 @@ ], "tests": [ "assert(difference === 12, 'message: Make the variable difference equal 12.');", - "assert(/\\d+\\s*-\\s*\\d+/.test(code),'message: User the - operator');" + "assert((code).match(/difference/g).length === 1,'message: Only change the first line');", + "assert(/\\d+\\s*-\\s*\\d+/.test(code),'message: Use the - operator');" ], "type": "waypoint", "challengeType": "1"