Fix isEmptyString() UT
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 23:07:26 +0000 (00:07 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 23:07:26 +0000 (00:07 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/UtilsTest.ts

index 21d5d1376a7bbd3ccd0daf8390ac36f5897a2c4c..a3166aed856927d9d577642ae17d5ad4f10e64f1 100644 (file)
@@ -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()', () => {