Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 15, 2024
1 parent f5cacda commit 805da50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/window/WindowPostMessageStream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ describe('WindowPostMessageStream', () => {
expect(pms._writableState.objectMode).toBe(false);
});

it('can be instantiated without options', () => {
const pms = new WindowPostMessageStream(undefined as any);
expect(pms._readableState.encoding).toBe('utf8');
it('can be instantiated with default options', () => {
const pms = new WindowPostMessageStream({ name: 'foo', target: 'bar' });
expect(pms._readableState.objectMode).toBe(true);
expect(pms._writableState.objectMode).toBe(true);
});
Expand Down

0 comments on commit 805da50

Please sign in to comment.