MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/ResultsCondensedCardStats/ResultsCondensedCardStats.test.jsx

Summary

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

describe('ResultsCondensedCardStatsComponent', () => {
  const props = {
    bidStatisticsArray: [
      {
        total_bids: 5,
        in_grade: 5,
        at_skill: 5,
        in_grade_at_skill: 5,
      },
    ],
  };
  it('is defined', () => {
    const wrapper = shallow(
      <ResultsCondensedCardStats {...props} />,
    );
    expect(wrapper).toBeDefined();
  });

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