MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidderPortfolio/ClientBadge/ClientBadge.test.jsx

Summary

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

describe('ClientBadge', () => {
  const props = {
    type: '3',
    status: true,
  };

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

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