Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeiZ committed Nov 18, 2022
1 parent 17aee90 commit e0e1809
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4559,6 +4559,7 @@ describe('ReactDOMFizzServer', () => {
const {pipe} = renderToPipeableStream(<App name="Foo" />);
pipe(writable);
});

expect(container.innerHTML).toEqual(
'<div>hello<b>world, <!-- -->Foo</b>!</div>',
);
Expand Down Expand Up @@ -4614,10 +4615,8 @@ describe('ReactDOMFizzServer', () => {
// - an external runtime script and deleted nodes with data attributes
// - extra script nodes containing fizz instructions at the end of container
expect(
stripExternalRuntimeInNodes(
container.childNodes,
renderOptions.unstable_externalRuntimeSrc,
).filter(e => e.tagName !== 'SCRIPT').length,
Array.from(container.childNodes).filter(e => e.tagName !== 'SCRIPT')
.length,
).toBe(3);

expect(div.childNodes.length).toBe(3);
Expand Down

0 comments on commit e0e1809

Please sign in to comment.