diff --git a/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/challenges/01-front-end-development-certification/json-apis-and-ajax.json index d64d6f00ab..47cc9d2d84 100644 --- a/challenges/01-front-end-development-certification/json-apis-and-ajax.json +++ b/challenges/01-front-end-development-certification/json-apis-and-ajax.json @@ -419,7 +419,8 @@ "" ], "tests": [ - "assert(code.match(/filter/gi), 'message: You should be making use of the .filter method.');" + "assert(code.match(/json.filter\\(\\s*?function\\(/), 'message: You should be making use of the .filter method. ');", + "assert(code.match(/return\\s*?\\(\\s*?\\w+\\.id\\s*?!==\\s*?1\\s*?\\);/), 'message: Your function should only return images with a value not equal to 1. ');" ], "type": "waypoint", "challengeType": 0,