Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luwangel committed Jul 28, 2020
1 parent 32b073a commit bc8cf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/list/DatagridHeaderCell.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('<DatagridHeaderCell />', () => {
</tbody>
</table>
);
expect(getByTitle('ra.action.sort').dataset.sort).toBe('title');
expect(getByTitle('ra.action.sort').dataset.field).toBe('title');
});

it('should be enabled when field has a sortBy props', () => {
Expand All @@ -64,7 +64,7 @@ describe('<DatagridHeaderCell />', () => {
</tbody>
</table>
);
expect(getByTitle('ra.action.sort').dataset.sort).toBe('title');
expect(getByTitle('ra.action.sort').dataset.field).toBe('title');
});

it('should be change order when field has a sortByOrder props', () => {
Expand Down

0 comments on commit bc8cf45

Please sign in to comment.