X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fthread%2Ffixed.test.js;h=81ef967ec5e0540abdd94a697b642b3e08c69b3e;hb=412c9105b678133f3897fb524fd8f694388b86c0;hp=09a58e2df5cafd27569842ae945373ea1a5b017f;hpb=292ad316a2815762f2e4a822383f1aef5ae49774;p=poolifier.git diff --git a/tests/pools/thread/fixed.test.js b/tests/pools/thread/fixed.test.js index 09a58e2d..81ef967e 100644 --- a/tests/pools/thread/fixed.test.js +++ b/tests/pools/thread/fixed.test.js @@ -74,7 +74,7 @@ describe('Fixed thread pool test suite', () => { for (let i = 0; i < numberOfThreads * 2; i++) { promises.push(pool.execute({ test: 'test' })) } - expect(poolBusy).toEqual(numberOfThreads) + expect(poolBusy).toBe(numberOfThreads) }) it('Verify that is possible to have a worker that return undefined', async () => { @@ -100,7 +100,7 @@ describe('Fixed thread pool test suite', () => { expect(inError).toBeDefined() expect(inError).toBeInstanceOf(Error) expect(inError.message).toBeDefined() - expect(typeof inError.message === 'string').toEqual(true) + expect(typeof inError.message === 'string').toBe(true) }) it('Verify that error handling is working properly:async', async () => { @@ -114,7 +114,7 @@ describe('Fixed thread pool test suite', () => { expect(inError).toBeDefined() expect(inError).toBeInstanceOf(Error) expect(inError.message).toBeDefined() - expect(typeof inError.message === 'string').toEqual(true) + expect(typeof inError.message === 'string').toBe(true) }) it('Verify that async function is working properly', async () => {