diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place.english.md
index 4b3fd76559..91399c12de 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place.english.md
@@ -45,7 +45,7 @@ tests:
- text: arr2
should be correct copy of arr1
.
testString: assert(arr2.every((v, i) => v === arr1[i]));
- text: ...
spread operator was used to duplicate arr1
.
- testString: assert(code.match(/\[\s*...arr1\s*\]/g));
+ testString: assert(code.match(/Array\(\s*\.\.\.arr1\s*\)|\[\s*\.\.\.arr1\s*\]/));
- text: arr2
should remain unchanged when arr1
is changed.
testString: assert((arr1, arr2) => {arr1.push('JUN'); return arr2.length < arr1.length});