Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
})
it('Verify that taskFunctions parameter with unique function is taken', () => {
})
it('Verify that taskFunctions parameter with unique function is taken', () => {
- const worker = new ThreadWorker(EMPTY_FUNCTION)
+ const worker = new ThreadWorker(() => {})
expect(worker.taskFunctions.get(DEFAULT_TASK_NAME)).toStrictEqual({
taskFunction: expect.any(Function)
})
expect(worker.taskFunctions.get(DEFAULT_TASK_NAME)).toStrictEqual({
taskFunction: expect.any(Function)
})