test: fix error type expectation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 13 Jun 2024 22:04:00 +0000 (00:04 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 13 Jun 2024 22:04:00 +0000 (00:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index 8db1d2b1b2fac2af2beba35a3e72b03ce1fc14cc..ecb1c5670e095a4f89678f8a511a99721084d3ea 100644 (file)
@@ -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 },