Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
'./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 },