athens.test.js 406 B

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