repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a095d7d
)
test: improve a bit isEmptyObject() coverage
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 13 Jan 2024 18:08:48 +0000
(19:08 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils/Utils.test.ts
b/tests/utils/Utils.test.ts
index 703bfec0aade94ab48f4e292f917744871b5d427..bef31dd97eaf0512db552841410be0c4def5841d 100644
(file)
--- 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)