Skip to content

Commit 4d14dbd

Browse files
author
Sebastian Silbermann
committed
Restore comments
1 parent da98603 commit 4d14dbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ describe('ReactMultiChildReconcile', () => {
335335
let statusDisplays = parentInstance.getStatusDisplays();
336336
const startingInternalState = statusDisplays.jcw.getInternalState();
337337

338+
// Now remove the child.
338339
await act(() => {
339340
root.render(
340341
<FriendsStatusDisplay prepareChildren={prepareChildrenArray} />,
@@ -344,6 +345,7 @@ describe('ReactMultiChildReconcile', () => {
344345
statusDisplays = parentInstance.getStatusDisplays();
345346
expect(statusDisplays.jcw).toBeFalsy();
346347

348+
// Now reset the props that cause there to be a child
347349
await act(() => {
348350
root.render(
349351
<FriendsStatusDisplay
@@ -388,6 +390,7 @@ describe('ReactMultiChildReconcile', () => {
388390
let statusDisplays = parentInstance.getStatusDisplays();
389391
const startingInternalState = statusDisplays.jcw.getInternalState();
390392

393+
// Now remove the child.
391394
await act(() => {
392395
root.render(
393396
<FriendsStatusDisplay
@@ -399,6 +402,7 @@ describe('ReactMultiChildReconcile', () => {
399402
statusDisplays = parentInstance.getStatusDisplays();
400403
expect(statusDisplays.jcw).toBeFalsy();
401404

405+
// Now reset the props that cause there to be a child
402406
await act(() => {
403407
root.render(
404408
<FriendsStatusDisplay
@@ -443,6 +447,7 @@ describe('ReactMultiChildReconcile', () => {
443447
let statusDisplays = parentInstance.getStatusDisplays();
444448
const startingInternalState = statusDisplays.jcw.getInternalState();
445449

450+
// Now remove the child.
446451
await act(() => {
447452
root.render(
448453
<FriendsStatusDisplay
@@ -454,6 +459,7 @@ describe('ReactMultiChildReconcile', () => {
454459
statusDisplays = parentInstance.getStatusDisplays();
455460
expect(statusDisplays.jcw).toBeFalsy();
456461

462+
// Now reset the props that cause there to be a child
457463
await act(() => {
458464
root.render(
459465
<FriendsStatusDisplay

0 commit comments

Comments
 (0)