TopSectionItem.test.tsx 436 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import { shallow } from 'enzyme';
  3. import TopSectionItem from './TopSectionItem';
  4. const setup = (propOverrides?: object) => {
  5. const props = Object.assign(
  6. {
  7. link: {},
  8. },
  9. propOverrides
  10. );
  11. return shallow(<TopSectionItem {...props} />);
  12. };
  13. describe('Render', () => {
  14. it('should render component', () => {
  15. const wrapper = setup();
  16. expect(wrapper).toMatchSnapshot();
  17. });
  18. });