From: Jérôme Benoit Date: Wed, 25 Jan 2023 23:07:26 +0000 (+0100) Subject: Fix isEmptyString() UT X-Git-Tag: v1.1.92~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1a4a811c5bdaa4aadd32dec4851835be864d8c6a;p=e-mobility-charging-stations-simulator.git Fix isEmptyString() UT Signed-off-by: Jérôme Benoit --- 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()', () => {