From baa10aeb75177fd738fefd89f33de3b30681776c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 4 Feb 2019 13:17:13 -0800 Subject: [PATCH] test: add BigInt test for isDeepStrictEqual Add some BigInt tests for test-util-isDeepStrictEqual to get 100% coverage for lib/internal/util/comparisons.js. PR-URL: https://github.com/nodejs/node/pull/25932 Reviewed-By: Ruben Bridgewater Reviewed-By: Anto Aravinth Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-util-isDeepStrictEqual.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-util-isDeepStrictEqual.js b/test/parallel/test-util-isDeepStrictEqual.js index fd585f7ccf0f1e..0eb75e46eb4e98 100644 --- a/test/parallel/test-util-isDeepStrictEqual.js +++ b/test/parallel/test-util-isDeepStrictEqual.js @@ -447,6 +447,8 @@ assert.strictEqual( notUtilIsDeepStrict(boxedString, Object('test')); boxedSymbol.slow = true; notUtilIsDeepStrict(boxedSymbol, {}); + utilIsDeepStrict(Object(BigInt(1)), Object(BigInt(1))); + notUtilIsDeepStrict(Object(BigInt(1)), Object(BigInt(2))); } // Minus zero