rome.test.js 398 B

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