import renderer from 'react-test-renderer'; import TableSortableHeaderCell from './TableSortableHeaderCell'; test('renders correctly when inactive', () => { const tree = renderer .create( {}} sortOrder="desc" status="inactive"> column name , ) .toJSON(); expect(tree).toMatchSnapshot(); }); test('renders correctly when active', () => { const tree = renderer .create( {}} sortOrder="asc" status="active"> column name , ) .toJSON(); expect(tree).toMatchSnapshot(); }); test('sortable cell has end align', () => { const tree = renderer .create( {}} sortOrder="asc" status="active"> column name , ) .toJSON(); expect(tree).toMatchSnapshot(); });