Skip to content

Commit

Permalink
[test] Remove dead act( logic
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 7, 2024
1 parent bf71a58 commit 43a569a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,7 @@ describe('<DataGridPro /> - Detail panel', () => {
<TestCase getDetailPanelContent={() => <DetailPanel />} detailPanelExpandedRowIds={[0]} />,
);
expect(screen.getByTestId(`detail-panel-content`).textContent).to.equal(`${counter}`);
act(() => {
setProps({ detailPanelExpandedRowIds: [1] });
});
setProps({ detailPanelExpandedRowIds: [1] });
expect(screen.getByTestId(`detail-panel-content`).textContent).to.equal(`${counter}`);
});

Expand Down

0 comments on commit 43a569a

Please sign in to comment.