Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Aug 6, 2024
1 parent 5e1e7b1 commit 2df4941
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/web-streams.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ describeIfSupported('createStringifyWebStream()', () => {
}));

assert.deepStrictEqual(actual, [
'{',
'"foo":123',
'{"foo":123',
',"bar":456',
'}'
]);
Expand All @@ -90,8 +89,7 @@ describeIfSupported('createStringifyWebStream()', () => {
}, 2));

assert.deepStrictEqual(actual, [
'{',
'\n "foo": 123',
'{\n "foo": 123',
'\n}'
]);
});
Expand All @@ -102,7 +100,7 @@ describeIfSupported('createStringifyWebStream()', () => {
});
const reader = stream.getReader();

assert.deepStrictEqual(await reader.read(), { value: '{', done: false });
assert.deepStrictEqual(await reader.read(), { value: '{"foo":123', done: false });
await reader.cancel();
assert.deepStrictEqual(await reader.read(), { value: undefined, done: true });
});
Expand Down

0 comments on commit 2df4941

Please sign in to comment.