MetaPhase-Consulting/State-TalentMAP

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

Summary

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

describe('ResultsCondensedCardFooterComponent', () => {
  it('is defined', () => {
    const wrapper = shallow(
      <ResultsCondensedCardFooter
        position={resultsObject.results[0]}
      />,
    );
    expect(wrapper).toBeDefined();
  });

  it('matches snapshot', () => {
    const wrapper = shallow(
      <ResultsCondensedCardFooter
        position={resultsObject.results[0]}
      />,
    );
    expect(toJSON(wrapper)).toMatchSnapshot();
  });
});