Merge dependabot/npm_and_yarn/types/node-20.10.4 into combined-prs-branch
[poolifier.git] / tests / pools / thread / dynamic.test.mjs
index c31e141c091b52c7ff2050253051eb8fd2e68092..bf7f95278e861e0f1239d0ea36d0645399e56c3e 100644 (file)
@@ -67,13 +67,15 @@ describe('Dynamic thread pool test suite', () => {
     await pool.destroy()
     const numberOfExitEvents = await exitPromise
     expect(pool.started).toBe(false)
+    expect(pool.emitter.eventNames()).toStrictEqual([])
+    expect(pool.readyEventEmitted).toBe(false)
     expect(pool.workerNodes.length).toBe(0)
     expect(numberOfExitEvents).toBe(min)
     expect(poolDestroy).toBe(1)
   })
 
   it('Validation of inputs test', () => {
-    expect(() => new DynamicThreadPool(min)).toThrowError(
+    expect(() => new DynamicThreadPool(min)).toThrow(
       "Cannot find the worker file 'undefined'"
     )
   })