all files / components/__tests__/ SDDataTable.test.js

100% Statements 11/11
100% Branches 4/4
100% Functions 3/3
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                    
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;
  });
});