From 293aaa3118bbd8c6a6e7933f049d51031c134fa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 25 Jan 2023 14:58:44 +0100 Subject: [PATCH] Fix 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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/utils/UtilsTest.ts b/test/utils/UtilsTest.ts index a826b367..21d5d137 100644 --- a/test/utils/UtilsTest.ts +++ b/test/utils/UtilsTest.ts @@ -146,19 +146,12 @@ describe('Utils test suite', () => { }); it('Verify isIterable()', () => { - expect(Utils.isIterable('')).toBe(false); + expect(Utils.isIterable('')).toBe(true); expect(Utils.isIterable(' ')).toBe(true); 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({})).toBe(false); - expect(Utils.isIterable({ 1: 1 })).toBe(false); expect(Utils.isIterable([])).toBe(true); - expect(Utils.isIterable(new Map())).toBe(true); - expect(Utils.isIterable(new Set())).toBe(true); - expect(Utils.isIterable(new WeakMap())).toBe(false); - expect(Utils.isIterable(new WeakSet())).toBe(false); }); it('Verify isEmptyString()', () => { -- 2.34.1