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 ac59ef8ab6..3459221dd8 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 @@ -227,7 +227,9 @@ ], "tests": [ "assert.deepEqual(htmlColorNames(['DarkGoldenRod', 'WhiteSmoke', 'LavenderBlush', 'PaleTurqoise', 'FireBrick']), ['DarkSalmon', 'BlanchedAlmond', 'LavenderBlush', 'PaleTurqoise', 'FireBrick'], 'message: htmlColorNames should return [\"DarkSalmon\", \"BlanchedAlmond\", \"LavenderBlush\", \"PaleTurqoise\", \"FireBrick\"]');", - "assert.notStrictEqual(htmlColorNames.toString().search(/\\.splice\\(/), -1, 'message: The htmlColorNames function should utilize the splice() method');" + "assert(/.splice/.test(code), 'message: The htmlColorNames function should utilize the splice() method');", + "assert(!/shift|unshift/.test(code), 'message: You should not use shift() or unshift().');", + "assert(!/\\[\\d\\]\\s*=/.test(code), 'message: You should not use array bracket notation.');" ], "type": "waypoint", "solutions": [],