expect(result).toBe(false)
})
- it('Verify that is possible to invoke the execute method without input', async () => {
+ it('Verify that is possible to invoke the execute() method without input', async () => {
const result = await pool.execute()
expect(result).toBe(false)
})
it('Verify that a pool with zero worker fails', async () => {
expect(
() => new FixedThreadPool(0, './tests/worker-files/thread/testWorker.js')
- ).toThrowError(new Error('Cannot instantiate a fixed pool with no worker'))
+ ).toThrowError('Cannot instantiate a fixed pool with no worker')
})
})