MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidderPortfolio/TopNav/Navigation/Navigation.test.jsx

Summary

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

describe('NavigationComponent', () => {
  it('is defined', () => {
    const wrapper = shallow(
      <Navigation
        counts={bidderPortfolioCountsObject}
      />,
    );
    expect(wrapper).toBeDefined();
  });

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