build(deps): bump poolifier in /examples/typescript/http-client-pool
[poolifier.git] / tests / pools / cluster / dynamic.test.mjs
index edd9639036937143a64ee5c8a571cecc6c436f35..93f995fcb4cfefd215ea90e348ec1e4023643745 100644 (file)
@@ -67,14 +67,16 @@ describe('Dynamic cluster 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 DynamicClusterPool(min)).toThrowError(
-      'Please specify a file with a worker implementation'
+    expect(() => new DynamicClusterPool(min)).toThrow(
+      "Cannot find the worker file 'undefined'"
     )
   })