From 5db3cc4abc076692b6eda3f8d55809724651bec9 Mon Sep 17 00:00:00 2001 From: DarkChowder Date: Fri, 19 Feb 2016 13:17:51 -0800 Subject: [PATCH] Modified the test errors of "Filter Arrays with .filter" so the goal is not misunderstood. --- .../object-oriented-and-functional-programming.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index 3dbfc0930aa..251e234cf61 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -405,8 +405,8 @@ "tests": [ "assert.deepEqual(oldArray, [1,2,3,4,5,6,7,8,9,10], 'message: You should not change the original array.');", "assert.deepEqual(newArray, [1,2,3,4,5], 'message: You should have filtered out all values from the array that are greater than 5.');", - "assert(editor.getValue().match(/array\\.filter\\s*\\(/gi), 'message: You should be using the filter method to remove the values from the array.');", - "assert(editor.getValue().match(/\\[1\\,2\\,3\\,4\\,5\\,6\\,7\\,8\\,9\\,10\\]/gi), 'message: You should only be using filter to modify the contents of the array.');" + "assert(editor.getValue().match(/array\\.filter\\s*\\(/gi), 'message: You should be using the filter method to create a new array.');", + "assert(editor.getValue().match(/\\[1\\,2\\,3\\,4\\,5\\,6\\,7\\,8\\,9\\,10\\]/gi), 'message: You should only be using filter to make the new array.');" ], "type": "waypoint", "challengeType": 1,