fix: fix worker function type definition and validation
[poolifier.git] / tests / pools / thread / fixed.test.js
index 75c4a935ab57c9e1ae1fd685a4b20183affbaf8c..6cccd6dbc6dd76166710e422f990372d9879649a 100644 (file)
@@ -186,6 +186,6 @@ describe('Fixed thread pool test suite', () => {
   it('Verify that a pool with zero worker fails', async () => {
     expect(
       () => new FixedThreadPool(0, './tests/worker-files/thread/testWorker.js')
-    ).toThrowError(new Error('Cannot instantiate a fixed pool with no worker'))
+    ).toThrowError('Cannot instantiate a fixed pool with no worker')
   })
 })