sparta.test.js 406 B

123456789101112
  1. import { shallow } from 'enzyme';
  2. import toJson from 'enzyme-to-json';
  3. import React from 'react';
  4. import { SpartaPage } from '../../src/pages/sparta';
  5. import testContent from '../../__mocks__/data/testContent';
  6. describe('SpartaPage page', () => {
  7. it('renders correctly', () => {
  8. const wrapper = shallow(<SpartaPage content={testContent} />);
  9. expect(toJson(wrapper)).toMatchSnapshot();
  10. });
  11. });