Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
}
)
).toThrow(
- new RangeError(
+ new TypeError(
'Cannot construct a worker node without a tasks queue priority option'
)
)
}
)
).toThrow(
- new RangeError(
+ new TypeError(
'Cannot construct a worker node with a tasks queue priority option that is not a boolean'
)
)
expect(() =>
threadWorkerNode.getTaskFunctionWorkerUsage('invalidTaskFunction')
).toThrow(
- new TypeError(
+ new Error(
"Cannot get task function worker usage for task function name 'invalidTaskFunction' when task function properties list is not yet defined"
)
)
expect(() =>
threadWorkerNode.getTaskFunctionWorkerUsage('invalidTaskFunction')
).toThrow(
- new TypeError(
+ new Error(
"Cannot get task function worker usage for task function name 'invalidTaskFunction' when task function properties list has less than 3 elements"
)
)