refactor: use more ramdba helpers
[e-mobility-charging-stations-simulator.git] / tests / utils / Utils.test.ts
index 630831a8d3e29d52d88cedf204d22789aa61a06b..a86765293d72e64371b9da02cbf8308ee2c5bad1 100644 (file)
@@ -25,8 +25,6 @@ import {
   isNotEmptyString,
   isObject,
   isValidDate,
-  max,
-  min,
   roundTo,
   secureRandom,
   sleep,
@@ -420,20 +418,4 @@ await describe('Utils test suite', async () => {
     expect(isArraySorted<number>([1, 2, 3, 5, 4], (a, b) => a - b)).toBe(false)
     expect(isArraySorted<number>([2, 1, 3, 4, 5], (a, b) => a - b)).toBe(false)
   })
-
-  await it('Verify min()', () => {
-    expect(min()).toBe(Infinity)
-    expect(min(0, 1)).toBe(0)
-    expect(min(1, 0)).toBe(0)
-    expect(min(0, -1)).toBe(-1)
-    expect(min(-1, 0)).toBe(-1)
-  })
-
-  await it('Verify max()', () => {
-    expect(max()).toBe(-Infinity)
-    expect(max(0, 1)).toBe(1)
-    expect(max(1, 0)).toBe(1)
-    expect(max(0, -1)).toBe(0)
-    expect(max(-1, 0)).toBe(0)
-  })
 })