all files / components/__tests__/ SDDropdown.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 18 19 201× 1× 1×   1×   1× 1×               1×        
import React from 'react';
import {shallow} from 'enzyme';
import SDDropdown from '../SDDropdown.react';
 
describe('SDDropdown', () => {
 
  it('renders', () => {
    const component = shallow(
      <SDDropdown
        options={[
          {value: 1, label: 'test 1'},
          {value: 2, label: 'test 2'},
          {value: 3, label: 'test 3'}
        ]}
      />);
    expect(component).to.be.ok;
  });
});