From 55d9dacaec29b11fa5535f3d71422f1f7b558db7 Mon Sep 17 00:00:00 2001 From: fonsecapontes Date: Thu, 9 Mar 2017 23:33:08 -0300 Subject: [PATCH] fix test pass spread-operator --- .../basic-data-structures.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json b/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json index b3f830c604..a9339b14be 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json @@ -290,7 +290,7 @@ "assert.deepEqual(copyMachine([1, 2, 3], 5), [[1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3]], 'message: copyMachine([1, 2, 3], 5) should return [[1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3]]');", "assert.deepEqual(copyMachine([true, true, null], 1), [[true, true, null]], 'message: copyMachine([true, true, null], 1) should return [[true, true, null]]');", "assert.deepEqual(copyMachine(['it works'], 3), [['it works'], ['it works'], ['it works']], 'message: copyMachine([\"it works\"], 3) should return [[\"it works\"], [\"it works\"], [\"it works\"]]');", - "assert.notStrictEqual(copyMachine.toString().search(/[...]/), -1, 'message: The copyMachine function should utilize the ... operator');" + "assert.notStrictEqual(copyMachine.toString().indexOf('.concat(_toConsumableArray(arr))'), -1, 'message: The copyMachine function should utilize the spread operator with array arr');" ], "type": "waypoint", "releasedOn": "Feb 17, 2017",