Skip to content

Commit

Permalink
[core] Convention suffix xIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 22, 2020
1 parent e41b125 commit c2a03c0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,7 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { createClientRender, getClasses, createMount, describeConformance } from 'test/utils';
import Sort from '@material-ui/icons/Sort';
import SortIcon from '@material-ui/icons/Sort';
import TableSortLabel from './TableSortLabel';
import ButtonBase from '../ButtonBase';

Expand Down Expand Up @@ -57,7 +57,7 @@ describe('<TableSortLabel />', () => {
});

it('should accept a custom icon for the sort icon', () => {
const { container } = render(<TableSortLabel IconComponent={Sort} />);
const { container } = render(<TableSortLabel IconComponent={SortIcon} />);
const icon = container.querySelector(`svg.${classes.icon}[data-mui-test="SortIcon"]`);
expect(icon).to.not.equal(null);
});
Expand Down

0 comments on commit c2a03c0

Please sign in to comment.