MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/ProfileDashboard/UserProfile/UserProfileBidInformation/UserProfileBidInformation.test.jsx

Summary

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


describe('UserProfileBidInformationComponent', () => {
  it('is defined', () => {
    const wrapper = shallow(<UserProfileBidInformation draft={1} submitted={1} />);
    expect(wrapper).toBeDefined();
  });

  it('is defined when a denominator is provided', () => {
    const wrapper = shallow(<UserProfileBidInformation draft={1} submitted={1} denominator={9} />);
    expect(wrapper).toBeDefined();
  });

  it('matches snapshot', () => {
    const wrapper = shallow(<UserProfileBidInformation draft={1} submitted={1} />);
    expect(toJSON(wrapper)).toMatchSnapshot();
  });

  it('matches snapshot when a denominator is provided', () => {
    const wrapper = shallow(<UserProfileBidInformation draft={1} submitted={1} denominator={9} />);
    expect(wrapper).toBeDefined();
  });
});