From 1a4a811c5bdaa4aadd32dec4851835be864d8c6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 26 Jan 2023 00:07:26 +0100 Subject: [PATCH] Fix isEmptyString() 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 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/utils/UtilsTest.ts b/test/utils/UtilsTest.ts index 21d5d137..a3166aed 100644 --- a/test/utils/UtilsTest.ts +++ b/test/utils/UtilsTest.ts @@ -161,15 +161,15 @@ describe('Utils test suite', () => { expect(Utils.isEmptyString('test')).toBe(false); expect(Utils.isEmptyString(' test')).toBe(false); expect(Utils.isEmptyString('test ')).toBe(false); - expect(Utils.isEmptyString(null)).toBe(false); - expect(Utils.isEmptyString(undefined)).toBe(false); - expect(Utils.isEmptyString(0)).toBe(false); - expect(Utils.isEmptyString({})).toBe(false); - expect(Utils.isEmptyString([])).toBe(false); - expect(Utils.isEmptyString(new Map())).toBe(false); - expect(Utils.isEmptyString(new Set())).toBe(false); - expect(Utils.isEmptyString(new WeakMap())).toBe(false); - expect(Utils.isEmptyString(new WeakSet())).toBe(false); + expect(Utils.isEmptyString(null)).toBe(true); + expect(Utils.isEmptyString(undefined)).toBe(true); + expect(Utils.isEmptyString(0)).toBe(true); + expect(Utils.isEmptyString({})).toBe(true); + expect(Utils.isEmptyString([])).toBe(true); + expect(Utils.isEmptyString(new Map())).toBe(true); + expect(Utils.isEmptyString(new Set())).toBe(true); + expect(Utils.isEmptyString(new WeakMap())).toBe(true); + expect(Utils.isEmptyString(new WeakSet())).toBe(true); }); it('Verify isUndefined()', () => { -- 2.34.1