- expect(
- () => new ThreadWorker(() => {}, { maxInactiveTime: '' })
- ).toThrowError(new TypeError('maxInactiveTime option is not an integer'))
- expect(
- () => new ThreadWorker(() => {}, { maxInactiveTime: 0.5 })
- ).toThrowError(new TypeError('maxInactiveTime option is not an integer'))
- expect(
- () => new ThreadWorker(() => {}, { maxInactiveTime: 0 })
- ).toThrowError(
+ expect(() => new ThreadWorker(() => {}, { maxInactiveTime: '' })).toThrow(
+ new TypeError('maxInactiveTime option is not an integer')
+ )
+ expect(() => new ThreadWorker(() => {}, { maxInactiveTime: 0.5 })).toThrow(
+ new TypeError('maxInactiveTime option is not an integer')
+ )
+ expect(() => new ThreadWorker(() => {}, { maxInactiveTime: 0 })).toThrow(