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