Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Mar 30, 2023
1 parent 216ef73 commit cbabc9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/compat/render-chunked.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ describe('renderToChunks', () => {
await promise;

expect(result).to.deep.equal([
'<div><!--preact-island:00-->loading...<!--/preact-island:00--></div>',
'<div><!--preact-island:6-->loading...<!--/preact-island:6--></div>',
'<div hidden>',
createInitScript(),
createSubtree('00', '<p>it works</p>'),
createSubtree('6', '<p>it works</p>'),
'</div>'
]);
});
Expand All @@ -60,7 +60,7 @@ describe('renderToChunks', () => {
suspended.resolve();

expect(result).to.deep.equal([
'<div><!--preact-island:00-->loading...<!--/preact-island:00--></div>',
'<div><!--preact-island:12-->loading...<!--/preact-island:12--></div>',
'<div hidden>',
createInitScript(1),
'</div>'
Expand Down
4 changes: 2 additions & 2 deletions test/compat/stream-node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ describe('renderToPipeableStream', () => {
const result = await sink.promise;

expect(result).to.deep.equal([
'<div><!--preact-island:00-->loading...<!--/preact-island:00--></div>',
'<div><!--preact-island:19-->loading...<!--/preact-island:19--></div>',
'<div hidden>',
createInitScript(),
createSubtree('00', '<p>it works</p>'),
createSubtree('19', '<p>it works</p>'),
'</div>'
]);
});
Expand Down
4 changes: 2 additions & 2 deletions test/compat/stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ describe('renderToReadableStream', () => {
const result = await sink.promise;

expect(result).to.deep.equal([
'<div><!--preact-island:00-->loading...<!--/preact-island:00--></div>',
'<div><!--preact-island:27-->loading...<!--/preact-island:27--></div>',
'<div hidden>',
createInitScript(),
createSubtree('00', '<p>it works</p>'),
createSubtree('27', '<p>it works</p>'),
'</div>'
]);
});
Expand Down

0 comments on commit cbabc9e

Please sign in to comment.