From 1c1147036bb68c12685b2e182f910689646b3b11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 13 Jan 2024 19:08:48 +0100 Subject: [PATCH] test: improve a bit isEmptyObject() coverage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/utils/Utils.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/utils/Utils.test.ts b/tests/utils/Utils.test.ts index 703bfec0..bef31dd9 100644 --- a/tests/utils/Utils.test.ts +++ b/tests/utils/Utils.test.ts @@ -364,6 +364,8 @@ await describe('Utils test suite', async () => { await it('Verify isEmptyObject()', () => { expect(isEmptyObject({})).toBe(true) expect(isEmptyObject({ 1: 1, 2: 2 })).toBe(false) + expect(isEmptyObject([])).toBe(false) + expect(isEmptyObject([1, 2])).toBe(false) expect(isEmptyObject(new Map())).toBe(false) expect(isEmptyObject(new Set())).toBe(false) expect(isEmptyObject(new WeakMap())).toBe(false) -- 2.34.1