Skip to content

Commit 1b5b1cc

Browse files
nikita-malyschkinMylesBorins
authored andcommitted
test: add test for strictDeepEqual
PR-URL: #24197 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent cd2dedf commit 1b5b1cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-util-isDeepStrictEqual.js

+3
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,13 @@ utilIsDeepStrict(-0, -0);
459459
const obj1 = { [symbol1]: 1 };
460460
const obj2 = { [symbol1]: 1 };
461461
const obj3 = { [Symbol()]: 1 };
462+
const obj4 = { };
462463
// Add a non enumerable symbol as well. It is going to be ignored!
463464
Object.defineProperty(obj2, Symbol(), { value: 1 });
465+
Object.defineProperty(obj4, symbol1, { value: 1 });
464466
notUtilIsDeepStrict(obj1, obj3);
465467
utilIsDeepStrict(obj1, obj2);
468+
notUtilIsDeepStrict(obj1, obj4);
466469
// TypedArrays have a fast path. Test for this as well.
467470
const a = new Uint8Array(4);
468471
const b = new Uint8Array(4);

0 commit comments

Comments
 (0)