Add tests for mutate const array
This commit is contained in:
@ -159,8 +159,8 @@
|
|||||||
"tests": [
|
"tests": [
|
||||||
"// Test user did not replace const keyword",
|
"// Test user did not replace const keyword",
|
||||||
"// Test s is const",
|
"// Test s is const",
|
||||||
"// Test s is sorted",
|
"assert.deepEqual(s, [2, 5, 7], 'message: <code>s</code> should be equal to <code>[2, 5, 7]</code>.');",
|
||||||
"// Test s is still mutable, and object freeze was not invoked"
|
"assert(!Object.isFrozen(s), 'message: <code>s</code> should not be frozen.');"
|
||||||
],
|
],
|
||||||
"type": "waypoint",
|
"type": "waypoint",
|
||||||
"releasedOn": "Feb 17, 2017",
|
"releasedOn": "Feb 17, 2017",
|
||||||
|
Reference in New Issue
Block a user