Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
chore: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
IKatsuba committed Nov 19, 2020
1 parent 7e9d7cd commit 9992fc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/workers/src/worker/classes/web-worker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ describe('WebWorker', () => {

delete (window as any).Worker;

const worker = WebWorker.fromFunction(d => d);
const worker = WebWorker.fromFunction<void, void>(d => d);

expect(() => worker.terminate()).not.toThrow();
expect(() => worker.postMessage()).not.toThrow();

await expectAsync(worker.toPromise()).toBeRejected();

Expand Down

0 comments on commit 9992fc0

Please sign in to comment.