Skip to content

Commit 1837d95

Browse files
author
asvarcas
committed
Fix tests
1 parent f894eaa commit 1837d95

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)