From 07a465ebc9c5a95dc4cd92c3843d2470983991d2 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Wed, 15 May 2024 05:03:58 +0000 Subject: [PATCH] fix test --- src/window/WindowPostMessageStream.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/WindowPostMessageStream.test.ts b/src/window/WindowPostMessageStream.test.ts index c6c1420..d304e0c 100644 --- a/src/window/WindowPostMessageStream.test.ts +++ b/src/window/WindowPostMessageStream.test.ts @@ -13,8 +13,8 @@ describe('WindowPostMessageStream', () => { expect(pms._writableState.objectMode).toBe(false); }); - it('can be instantiated without options', () => { - const pms = new WindowPostMessageStream(undefined as any); + it('can be instantiated with default options', () => { + const pms = new WindowPostMessageStream({ name: 'foo', target: 'bar' }); expect(pms._readableState.encoding).toBe('utf8'); expect(pms._readableState.objectMode).toBe(true); expect(pms._writableState.objectMode).toBe(true);