From d0d5a919ab260dea4bac8fb50d3917211fc54bce Mon Sep 17 00:00:00 2001 From: kamlesh tajpuri Date: Sun, 25 Sep 2016 17:17:58 +0530 Subject: [PATCH] Fix for Issue #10912 Changed description from " You should have filtered out all values from the array that are greater than 5 " to "You should have filtered out all values from the array that are less than 6 " Updates as requested on PR #10912 Changed You should have filtered out all values from the array that are greater than 5. to newArray should be an array containing only the values from oldArray that are less than 6. --- .../object-oriented-and-functional-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index ad4334183a..a6fbcf6a5f 100644 --- a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -441,7 +441,7 @@ ], "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.deepEqual(newArray, [1,2,3,4,5], 'message: newArray should be an array containing only the values from oldArray that are less than 6.');", "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.');" ],