repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/smtp-client-pool/types/node-20...
[poolifier.git]
/
tests
/
pools
/
abstract-pool.test.js
diff --git
a/tests/pools/abstract-pool.test.js
b/tests/pools/abstract-pool.test.js
index 3860a0eb95fc4f50de2ea9ff28813860faafd9b6..85d48d6a4e4eecaab910c20814a8abc471cc6fe3 100644
(file)
--- a/
tests/pools/abstract-pool.test.js
+++ b/
tests/pools/abstract-pool.test.js
@@
-79,7
+79,13
@@
describe('Abstract pool test suite', () => {
})
it('Verify that numberOfWorkers is checked', () => {
})
it('Verify that numberOfWorkers is checked', () => {
- expect(() => new FixedThreadPool()).toThrowError(
+ expect(
+ () =>
+ new FixedThreadPool(
+ undefined,
+ './tests/worker-files/thread/testWorker.js'
+ )
+ ).toThrowError(
new Error(
'Cannot instantiate a pool without specifying the number of workers'
)
new Error(
'Cannot instantiate a pool without specifying the number of workers'
)