| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1× 1× 1× 1× 1× 1× 1× | import React from 'react';
import {shallow} from 'enzyme';
import SDDataTable from '../SDDataTable.react';
describe('SDDataTable', () => {
it('renders', () => {
const component = shallow(
<SDDataTable
data={[{x: 1, y: 2}]}
columns={[{col: 'x'}, {col: 'y'}]}
/>);
expect(component).to.be.ok;
});
});
|