From d98f014c7958d0400f717f2704fb74bb1f7852e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 26 Jan 2023 20:38:27 +0100 Subject: [PATCH] Improve isIterable() UT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- test/utils/UtilsTest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils/UtilsTest.ts b/test/utils/UtilsTest.ts index 987ba7fb..019dc771 100644 --- 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); -- 2.34.1