fix: fix worker function type definition and validation
[poolifier.git] / tests / pools / cluster / dynamic.test.js
index 0da467ca8685157e453872a84e0760f11aa2641e..23403ab78108620f555d8d9d8635cb06bcafd1e8 100644 (file)
@@ -66,7 +66,7 @@ describe('Dynamic cluster pool test suite', () => {
 
   it('Validation of inputs test', () => {
     expect(() => new DynamicClusterPool(min)).toThrowError(
-      new Error('Please specify a file with a worker implementation')
+      'Please specify a file with a worker implementation'
     )
   })