MetaPhase-Consulting/State-TalentMAP

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

Summary

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

describe('HomePageFiltersSectionComponent', () => {
  const props = {
    filters,
  };

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

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