From dd09da844b5237614de1db6064dd489963e6eba9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 12 Oct 2015 09:50:56 -0700 Subject: [PATCH] test: add Symbol test for assert.deepEqual() The existing test never ran because typeof Symbol === 'function' and not 'symbol'. Update to Symbol() which will be a symbol and not a function. --- test/parallel/test-assert.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index ce19462a62387c..db36abc184b024 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -140,9 +140,7 @@ assert.throws(makeBlock(a.deepEqual, 'a', ['a']), a.AssertionError); assert.throws(makeBlock(a.deepEqual, 'a', {0: 'a'}), a.AssertionError); assert.throws(makeBlock(a.deepEqual, 1, {}), a.AssertionError); assert.throws(makeBlock(a.deepEqual, true, {}), a.AssertionError); -if (typeof Symbol === 'symbol') { - assert.throws(makeBlock(assert.deepEqual, Symbol(), {}), a.AssertionError); -} +assert.throws(makeBlock(a.deepEqual, Symbol(), {}), a.AssertionError); // primitive wrappers and object assert.doesNotThrow(makeBlock(a.deepEqual, new String('a'), ['a']),