refactor: remove isNullOrDefined() helper
[e-mobility-charging-stations-simulator.git] / tests / utils / Utils.test.ts
index bbb847069e102603eeef6b4e40c1af346dfedd2c..1c6400edec0c75ec3fb1b5ef414dce1805e7a422 100644 (file)
@@ -24,7 +24,6 @@ import {
   isIterable,
   isNotEmptyArray,
   isNotEmptyString,
-  isNullOrUndefined,
   isObject,
   isUndefined,
   isValidTime,
@@ -368,19 +367,6 @@ await describe('Utils test suite', async () => {
     expect(isUndefined(new WeakSet())).toBe(false)
   })
 
-  await it('Verify isNullOrUndefined()', () => {
-    expect(isNullOrUndefined(undefined)).toBe(true)
-    expect(isNullOrUndefined(null)).toBe(true)
-    expect(isNullOrUndefined('')).toBe(false)
-    expect(isNullOrUndefined(0)).toBe(false)
-    expect(isNullOrUndefined({})).toBe(false)
-    expect(isNullOrUndefined([])).toBe(false)
-    expect(isNullOrUndefined(new Map())).toBe(false)
-    expect(isNullOrUndefined(new Set())).toBe(false)
-    expect(isNullOrUndefined(new WeakMap())).toBe(false)
-    expect(isNullOrUndefined(new WeakSet())).toBe(false)
-  })
-
   await it('Verify isEmptyArray()', () => {
     expect(isEmptyArray([])).toBe(true)
     expect(isEmptyArray([1, 2])).toBe(false)