Skip to content

Commit

Permalink
Restore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann committed Feb 4, 2024
1 parent da98603 commit 4d14dbd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ describe('ReactMultiChildReconcile', () => {
let statusDisplays = parentInstance.getStatusDisplays();
const startingInternalState = statusDisplays.jcw.getInternalState();

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

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

// Now remove the child.
await act(() => {
root.render(
<FriendsStatusDisplay
Expand All @@ -399,6 +402,7 @@ describe('ReactMultiChildReconcile', () => {
statusDisplays = parentInstance.getStatusDisplays();
expect(statusDisplays.jcw).toBeFalsy();

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

// Now remove the child.
await act(() => {
root.render(
<FriendsStatusDisplay
Expand All @@ -454,6 +459,7 @@ describe('ReactMultiChildReconcile', () => {
statusDisplays = parentInstance.getStatusDisplays();
expect(statusDisplays.jcw).toBeFalsy();

// Now reset the props that cause there to be a child
await act(() => {
root.render(
<FriendsStatusDisplay
Expand Down

0 comments on commit 4d14dbd

Please sign in to comment.