From d8e8da36a05141af75e9bf2517dae0ca0595004f Mon Sep 17 00:00:00 2001 From: Joseph Mawa <52580190+nibble0101@users.noreply.github.com> Date: Fri, 18 Sep 2020 21:30:56 +0300 Subject: [PATCH] Fixed tests for JS Basic Algorithms: Slice and Splice challenge as suggested in issue #39560 (#39610) --- .../basic-algorithm-scripting/slice-and-splice.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice.english.md index 358989bae7..364870678c 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice.english.md @@ -33,9 +33,9 @@ tests: - text: All elements from the first array should be added to the second array in their original order. testString: assert.deepEqual(frankenSplice([1, 2, 3, 4], [], 0), [1, 2, 3, 4]); - text: The first array should remain the same after the function runs. - testString: frankenSplice(testArr1, testArr2); assert.deepEqual(testArr1, [1, 2]); + testString: frankenSplice(testArr1, testArr2, 1); assert.deepEqual(testArr1, [1, 2]); - text: The second array should remain the same after the function runs. - testString: frankenSplice(testArr1, testArr2); assert.deepEqual(testArr2, ["a", "b"]); + testString: frankenSplice(testArr1, testArr2, 1); assert.deepEqual(testArr2, ["a", "b"]); ```