test: use arrow noop task function
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 29 Apr 2024 19:13:29 +0000 (21:13 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 29 Apr 2024 19:13:29 +0000 (21:13 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/worker/abstract-worker.test.mjs

index b2aa996dfaa8764f6fd27c693d708807e9d790fc..67834a4c543e1111c0db8a8de03705c9bf1128da 100644 (file)
@@ -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)
     })