Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed Feb 24, 2021
1 parent 37ed4eb commit 7b40601
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('<DatagridRow />', () => {
);
expect(queryAllByText('expanded')).toHaveLength(0);
fireEvent.click(getByText('hello'));
expect(queryAllByText('expanded')).toHaveLength(0);
expect(queryAllByText('expanded')).toHaveLength(1);
});

it('should not show the expand button if it returns false', () => {
Expand All @@ -87,7 +87,7 @@ describe('<DatagridRow />', () => {
);
expect(queryAllByText('expanded')).toHaveLength(0);
fireEvent.click(getByText('hello'));
expect(queryAllByText('expanded')).toHaveLength(1);
expect(queryAllByText('expanded')).toHaveLength(0);
});
});

Expand Down

0 comments on commit 7b40601

Please sign in to comment.