diff --git a/tests/utils/Utils.test.ts b/tests/utils/Utils.test.ts index 3b2a52ae8..3622d8aec 100644 --- a/tests/utils/Utils.test.ts +++ b/tests/utils/Utils.test.ts @@ -346,8 +346,10 @@ await describe('Utils test suite', async () => { expect(clone(url)).toStrictEqual({}) const map = new Map([['1', '2']]) expect(clone(map)).toStrictEqual(map) + expect(clone(map) === map).toBe(false) const set = new Set(['1']) expect(clone(set)).toStrictEqual(set) + expect(clone(set) === set).toBe(false) const weakMap = new WeakMap([[{ 1: 1 }, { 2: 2 }]]) expect(() => clone(weakMap)).toThrow(new Error('# could not be cloned.')) const weakSet = new WeakSet([{ 1: 1 }, { 2: 2 }])