acropolis.test.js 418 B

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