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