From 695d1c7a93ec1efac8859c119a26cc76816ccf60 Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Fri, 3 Feb 2017 17:43:05 +0100 Subject: [PATCH] fix(challenge): Cleaner assertion for "Copy an Array with slice()". --- .../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 14d74be717..81d291c096 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 @@ -256,7 +256,7 @@ ], "tests": [ "assert.deepEqual(forecast(['cold', 'rainy', 'warm', 'sunny', 'cool', 'thunderstorms']), ['warm', 'sunny'], 'message: forecast should return [\"warm\", \"sunny\"]');", - "assert.notStrictEqual(forecast.toString().search(/\\.slice\\(/), -1, 'message: The forecast function should utilize the slice() method');" + "assert(/\\.slice\\(/.test(code), 'message: The forecast function should utilize the slice() method');" ], "type": "waypoint", "solutions": [],