From f3593b1a5e95b970dba4d6cfd903d83eb66b80f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 14 Jun 2024 00:04:00 +0200 Subject: [PATCH] test: fix error type expectation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/pools/abstract-pool.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.34.1