MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BureauPage/ExportButton/ExportButton.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { shallow } from 'enzyme';
import ExportButton from './ExportButton';

describe('ExportButton', () => {
  const props = {
    id: 1,
  };

  it('is defined', () => {
    const wrapper = shallow(<ExportButton {...props} />);
    expect(wrapper).toBeDefined();
  });

  it('sets state on exportBidders()', () => {
    const wrapper = shallow(<ExportButton {...props} />);
    wrapper.instance().exportBidders();
    expect(wrapper.instance().state.isLoading).toBe(true);
  });
});