- it('Verify that handleError() method works properly', () => {
- const errorMessage = 'Error as a string'
- const worker = new ClusterWorker(() => {})
- expect(worker.handleError(errorMessage)).toStrictEqual(errorMessage)
- })
-
- it('Verify worker invoke the getMainWorker() and send() methods', () => {