summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
80520ca)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
const fn2 = () => {
return 2
}
const fn2 = () => {
return 2
}
- const worker = new ThreadWorker({ fn1, fn2 })
+ const worker = new ClusterWorker({ fn1, fn2 })
expect(worker.taskFunctions.get('default')).toBeInstanceOf(Function)
expect(worker.taskFunctions.get('fn1')).toBeInstanceOf(Function)
expect(worker.taskFunctions.get('fn2')).toBeInstanceOf(Function)
expect(worker.taskFunctions.get('default')).toBeInstanceOf(Function)
expect(worker.taskFunctions.get('fn1')).toBeInstanceOf(Function)
expect(worker.taskFunctions.get('fn2')).toBeInstanceOf(Function)