Commit | Line | Data |
---|---|---|
fd027a65 S |
1 | const expect = require('expect') |
2 | const { ThreadWorker } = require('../../lib') | |
3 | ||
4 | describe('Thread worker test suite', () => { | |
5 | it('Verify worker has default maxInactiveTime', () => { | |
6 | const worker = new ThreadWorker(() => {}) | |
7 | expect(worker.maxInactiveTime).toEqual(60_000) | |
8 | }) | |
9 | }) |