Skip to content

Commit

Permalink
Fix lint, remove unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Jan 22, 2024
1 parent 2c11ee6 commit f96a448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-dom/src/__tests__/ReactTreeTraversal-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ describe('ReactTreeTraversal', () => {
root = ReactDOMClient.createRoot(container);
await act(() => {
root.render(<ParentComponent eventHandler={mockFn} />);
})
});
});

afterEach(() => {
root.unmount();
document.body.removeChild(container);
document.body.removeChild(outerNode1);
document.body.removeChild(outerNode2);
Expand Down

0 comments on commit f96a448

Please sign in to comment.