X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fabstract-worker.test.js;h=200b05acdff0f26a29c0eb4e2e760a64448935f5;hb=103057eedf4f7b18f009333806d0293bfb23e204;hp=13f3ae17aa70528bc14d259472b911f0c163bc02;hpb=f4d1dbd1592e24d7a09f35013c3e0f0762240254;p=poolifier.git diff --git a/tests/worker/abstract-worker.test.js b/tests/worker/abstract-worker.test.js index 13f3ae17..200b05ac 100644 --- a/tests/worker/abstract-worker.test.js +++ b/tests/worker/abstract-worker.test.js @@ -200,7 +200,7 @@ describe('Abstract worker test suite', () => { expect(killHandlerStub.calledOnce).toBe(true) }) - it('Verify that handleError() method works properly', () => { + it('Verify that handleError() method is working properly', () => { const error = new Error('Error as an error') const worker = new ClusterWorker(() => {}) expect(worker.handleError(error)).not.toBeInstanceOf(Error) @@ -215,7 +215,7 @@ describe('Abstract worker test suite', () => { ).toThrowError('Main worker not set') }) - it('Verify that hasTaskFunction() works', () => { + it('Verify that hasTaskFunction() is working', () => { const fn1 = () => { return 1 } @@ -239,7 +239,7 @@ describe('Abstract worker test suite', () => { expect(worker.hasTaskFunction('fn3')).toStrictEqual({ status: false }) }) - it('Verify that addTaskFunction() works', () => { + it('Verify that addTaskFunction() is working', () => { const fn1 = () => { return 1 } @@ -292,7 +292,7 @@ describe('Abstract worker test suite', () => { ) }) - it('Verify that removeTaskFunction() works', () => { + it('Verify that removeTaskFunction() is working', () => { const fn1 = () => { return 1 } @@ -339,7 +339,7 @@ describe('Abstract worker test suite', () => { expect(worker.getMainWorker().send.calledOnce).toBe(true) }) - it('Verify that listTaskFunctionNames() works', () => { + it('Verify that listTaskFunctionNames() is working', () => { const fn1 = () => { return 1 } @@ -354,7 +354,7 @@ describe('Abstract worker test suite', () => { ]) }) - it('Verify that setDefaultTaskFunction() works', () => { + it('Verify that setDefaultTaskFunction() is working', () => { const fn1 = () => { return 1 }