From: Jérôme Benoit Date: Thu, 13 Jun 2024 22:04:00 +0000 (+0200) Subject: test: fix error type expectation X-Git-Tag: v4.0.15~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f3593b1a5e95b970dba4d6cfd903d83eb66b80f7;p=poolifier.git test: fix error type expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 8db1d2b1..ecb1c567 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1715,7 +1715,7 @@ describe('Abstract pool test suite', () => { './tests/worker-files/thread/testMultipleTaskFunctionsWorker.mjs' ) expect(() => pool.mapExecute()).toThrow(new TypeError('data argument must be a defined iterable')) - expect(() => pool.mapExecute(0)).toThrow(new Error('data argument must be an iterable')) + expect(() => pool.mapExecute(0)).toThrow(new TypeError('data argument must be an iterable')) let results = await pool.mapExecute([{}, {}, {}, {}]) expect(results).toStrictEqual([ { ok: 1 },