From 2ed17bde151ea56b069ee0cbf9a15eac00718c78 Mon Sep 17 00:00:00 2001 From: techstonia Date: Sat, 1 Apr 2017 22:45:41 +0300 Subject: [PATCH] Add tests for mutate const array --- .../02-javascript-algorithms-and-data-structures/es6.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index 90a2ced448..c8b3912042 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -159,8 +159,8 @@ "tests": [ "// Test user did not replace const keyword", "// Test s is const", - "// Test s is sorted", - "// Test s is still mutable, and object freeze was not invoked" + "assert.deepEqual(s, [2, 5, 7], 'message: s should be equal to [2, 5, 7].');", + "assert(!Object.isFrozen(s), 'message: s should not be frozen.');" ], "type": "waypoint", "releasedOn": "Feb 17, 2017",