Skip to content

Commit

Permalink
add test for closing the expand on DatagridRow
Browse files Browse the repository at this point in the history
  • Loading branch information
fargito committed May 23, 2019
1 parent a3418e1 commit 5463fdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ra-ui-materialui/src/list/DatagridRow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ describe('<DatagridRow />', () => {

wrapper.instance().handleClick(event);
expect(wrapper.state('expanded')).toBeTruthy();

wrapper.instance().handleClick(event);
expect(wrapper.state('expanded')).toBeFalsy();
});

it("should execute the onToggleItem function if the 'toggleSelection' option is selected", () => {
Expand Down

0 comments on commit 5463fdc

Please sign in to comment.