Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b40601

Browse files
author
asvarcas
committedFeb 24, 2021
Fix tests
1 parent 37ed4eb commit 7b40601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/ra-ui-materialui/src/list/datagrid/DatagridRow.spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('<DatagridRow />', () => {
6868
);
6969
expect(queryAllByText('expanded')).toHaveLength(0);
7070
fireEvent.click(getByText('hello'));
71-
expect(queryAllByText('expanded')).toHaveLength(0);
71+
expect(queryAllByText('expanded')).toHaveLength(1);
7272
});
7373

7474
it('should not show the expand button if it returns false', () => {
@@ -87,7 +87,7 @@ describe('<DatagridRow />', () => {
8787
);
8888
expect(queryAllByText('expanded')).toHaveLength(0);
8989
fireEvent.click(getByText('hello'));
90-
expect(queryAllByText('expanded')).toHaveLength(1);
90+
expect(queryAllByText('expanded')).toHaveLength(0);
9191
});
9292
});
9393

0 commit comments

Comments
 (0)
Please sign in to comment.