build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / tests / utils / Utils.test.ts
index 8ab1332baf76eabc8bfae51ae6354769adfc3331..de5b1fd79907db54f30038921abe17fc53a2f764 100644 (file)
@@ -232,7 +232,7 @@ await describe('Utils test suite', async () => {
     expect(isAsyncFunction([])).toBe(false)
     expect(isAsyncFunction(new Date())).toBe(false)
     // eslint-disable-next-line prefer-regex-literals
-    expect(isAsyncFunction(new RegExp('[a-z]', 'i'))).toBe(false)
+    expect(isAsyncFunction(/[a-z]/i)).toBe(false)
     expect(isAsyncFunction(new Error())).toBe(false)
     expect(isAsyncFunction(new Map())).toBe(false)
     expect(isAsyncFunction(new Set())).toBe(false)