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 <code>newArray</code> should be an array containing only the values from <code>oldArray</code> that are less than 6.
This commit is contained in:
committed by
ktajpuri
parent
1fe0ddf5aa
commit
d0d5a919ab
@ -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: <code>newArray</code> should be an array containing only the values from <code>oldArray</code> that are less than 6.');",
|
||||
"assert(editor.getValue().match(/array\\.filter\\s*\\(/gi), 'message: You should be using the <code>filter</code> 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 <code>filter</code> to make the new array.');"
|
||||
],
|
||||
|
Reference in New Issue
Block a user