MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidStatistics/BidStatList/BidStatList.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { shallow } from 'enzyme';
import toJSON from 'enzyme-to-json';
import BidStatList from './BidStatList';
import bidStatistics from '../../../__mocks__/bidStatistics';

describe('BidStatListComponent', () => {
  const props = {
    bidStats: bidStatistics,
  };
  it('is defined', () => {
    const wrapper = shallow(
      <BidStatList
        {...props}
      />,
    );
    expect(wrapper).toBeDefined();
  });

  it('matches snapshot', () => {
    const wrapper = shallow(
      <BidStatList
        {...props}
      />,
    );
    expect(toJSON(wrapper)).toMatchSnapshot();
  });
});