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:
afb26ef
)
Improve isIterable() UT
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 26 Jan 2023 19:38:27 +0000
(20:38 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 26 Jan 2023 19:38:27 +0000
(20:38 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/UtilsTest.ts
patch
|
blob
|
blame
|
history
diff --git
a/test/utils/UtilsTest.ts
b/test/utils/UtilsTest.ts
index 987ba7fbb055e701fc4af28a2639781995a09778..019dc771b9bcb47fe25e3d3fcd1503be6db709a1 100644
(file)
--- a/
test/utils/UtilsTest.ts
+++ b/
test/utils/UtilsTest.ts
@@
-151,6
+151,7
@@
describe('Utils test suite', () => {
expect(Utils.isIterable('test')).toBe(true);
expect(Utils.isIterable(null)).toBe(false);
expect(Utils.isIterable(undefined)).toBe(false);
+ expect(Utils.isIterable(0)).toBe(false);
expect(Utils.isIterable([0, 1])).toBe(true);
expect(Utils.isIterable({ 1: 1 })).toBe(false);
expect(Utils.isIterable(new Map())).toBe(true);