import renderer from 'react-test-renderer'; import TableCell from './TableCell'; test('renders correctly', () => { const tree = renderer.create(cell content).toJSON(); expect(tree).toMatchSnapshot(); }); test('renders correctly with colSpan and rowSpan', () => { const tree = renderer .create( cell content , ) .toJSON(); expect(tree).toMatchSnapshot(); }); test('renders correctly when sticky and with shadows', () => { const tree = renderer .create( cell content , ) .toJSON(); expect(tree).toMatchSnapshot(); });