test: improve a bit isEmptyObject() coverage
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 13 Jan 2024 18:08:48 +0000 (19:08 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 13 Jan 2024 18:08:48 +0000 (19:08 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/utils/Utils.test.ts

index 703bfec0aade94ab48f4e292f917744871b5d427..bef31dd97eaf0512db552841410be0c4def5841d 100644 (file)
@@ -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)