diff --git a/projects/workers/src/worker/classes/web-worker.spec.ts b/projects/workers/src/worker/classes/web-worker.spec.ts index fa684de..04dee8b 100644 --- a/projects/workers/src/worker/classes/web-worker.spec.ts +++ b/projects/workers/src/worker/classes/web-worker.spec.ts @@ -12,7 +12,10 @@ describe('WebWorker', () => { delete (window as any).Worker; - const worker = WebWorker.fromFunction(d => d); + const worker = WebWorker.fromFunction(d => d); + + expect(() => worker.terminate()).not.toThrow(); + expect(() => worker.postMessage()).not.toThrow(); await expectAsync(worker.toPromise()).toBeRejected();