We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a75937 commit c71df52Copy full SHA for c71df52
src/WebWorker/WebWorker.test.ts
@@ -87,7 +87,7 @@ describe('WebWorker Streams', () => {
87
it('can be destroyed', () => {
88
(globalThis as any).self = originalSelf;
89
const stream = new WebWorkerPostMessageStream();
90
- expect(stream.destroy()).toBeUndefined();
+ expect(stream.destroy().destroyed).toStrictEqual(true);
91
});
92
93
it('forwards valid messages', () => {
0 commit comments