Skip to content

Commit e0e1809

Browse files
committed
syntax
1 parent 17aee90 commit e0e1809

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4559,6 +4559,7 @@ describe('ReactDOMFizzServer', () => {
45594559
const {pipe} = renderToPipeableStream(<App name="Foo" />);
45604560
pipe(writable);
45614561
});
4562+
45624563
expect(container.innerHTML).toEqual(
45634564
'<div>hello<b>world, <!-- -->Foo</b>!</div>',
45644565
);
@@ -4614,10 +4615,8 @@ describe('ReactDOMFizzServer', () => {
46144615
// - an external runtime script and deleted nodes with data attributes
46154616
// - extra script nodes containing fizz instructions at the end of container
46164617
expect(
4617-
stripExternalRuntimeInNodes(
4618-
container.childNodes,
4619-
renderOptions.unstable_externalRuntimeSrc,
4620-
).filter(e => e.tagName !== 'SCRIPT').length,
4618+
Array.from(container.childNodes).filter(e => e.tagName !== 'SCRIPT')
4619+
.length,
46214620
).toBe(3);
46224621

46234622
expect(div.childNodes.length).toBe(3);

0 commit comments

Comments
 (0)