From: Jérôme Benoit Date: Sat, 13 Jan 2024 18:08:48 +0000 (+0100) Subject: test: improve a bit isEmptyObject() coverage X-Git-Tag: v1.2.32~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1c1147036bb68c12685b2e182f910689646b3b11;p=e-mobility-charging-stations-simulator.git test: improve a bit isEmptyObject() coverage Signed-off-by: Jérôme Benoit --- 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)