From: Jérôme Benoit Date: Mon, 29 Apr 2024 19:13:29 +0000 (+0200) Subject: test: use arrow noop task function X-Git-Tag: v4.0.0~1^2~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f509d987b82bb8138eef227ebfe73f22f23d3b39;p=poolifier.git test: use arrow noop task function Signed-off-by: Jérôme Benoit --- diff --git a/tests/worker/abstract-worker.test.mjs b/tests/worker/abstract-worker.test.mjs index b2aa996d..67834a4c 100644 --- a/tests/worker/abstract-worker.test.mjs +++ b/tests/worker/abstract-worker.test.mjs @@ -136,7 +136,7 @@ describe('Abstract worker test suite', () => { }) it('Verify that taskFunctions parameter with unique function is taken', () => { - const worker = new ThreadWorker(EMPTY_FUNCTION) + const worker = new ThreadWorker(() => {}) expect(worker.taskFunctions.get(DEFAULT_TASK_NAME)).toStrictEqual({ taskFunction: expect.any(Function) })