})
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)
})
)
})
- it('Verify that listTaskFunctionNames() is working', () => {
+ it('Verify that listTaskFunctionsProperties() is working', () => {
const fn1 = () => {
return 1
}