Skip to content

Commit 2e334bd

Browse files
committed
passThrough is not needed in the parent scope
1 parent 942afe5 commit 2e334bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMNode-test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,7 @@ describe('ReactFlightDOMNode', () => {
12351235
);
12361236
}
12371237

1238-
let passThrough;
12391238
let staticEndTime = -1;
1240-
12411239
const initialChunks = [];
12421240
const dynamicChunks = [];
12431241

@@ -1249,7 +1247,7 @@ describe('ReactFlightDOMNode', () => {
12491247
{filterStackFrame},
12501248
);
12511249

1252-
passThrough = new Stream.PassThrough(streamOptions);
1250+
const passThrough = new Stream.PassThrough(streamOptions);
12531251
stream.pipe(passThrough);
12541252

12551253
passThrough.on('data', chunk => {
@@ -1353,7 +1351,7 @@ describe('ReactFlightDOMNode', () => {
13531351
' in body\n' +
13541352
' in html\n' +
13551353
' in App (file://ReactFlightDOMNode-test.js:1233:25)\n' +
1356-
' in ClientRoot (ReactFlightDOMNode-test.js:1310:16)',
1354+
' in ClientRoot (ReactFlightDOMNode-test.js:1308:16)',
13571355
);
13581356
} else {
13591357
expect(
@@ -1362,7 +1360,7 @@ describe('ReactFlightDOMNode', () => {
13621360
'\n' +
13631361
' in body\n' +
13641362
' in html\n' +
1365-
' in ClientRoot (ReactFlightDOMNode-test.js:1310:16)',
1363+
' in ClientRoot (ReactFlightDOMNode-test.js:1308:16)',
13661364
);
13671365
}
13681366

0 commit comments

Comments
 (0)