regexper-static/src/pages/privacy.test.js

20 lines
558 B
JavaScript
Raw Normal View History

jest.mock('components/Metadata', () =>
require('__mocks__/component-mock')('components/Metadata'));
jest.mock('components/PrivacyPolicy', () =>
require('__mocks__/component-mock')('components/PrivacyPolicy'));
2019-01-04 23:38:49 +00:00
import React from 'react';
import { render } from 'react-testing-library';
2019-01-04 23:38:49 +00:00
2019-01-06 18:03:07 +00:00
import { mockT } from 'i18n';
import { PrivacyPage } from 'pages/privacy';
2019-01-04 23:38:49 +00:00
describe('Privacy Page', () => {
test('rendering', () => {
const { asFragment } = render(
<PrivacyPage t={ mockT } />
2019-01-04 23:38:49 +00:00
);
expect(asFragment()).toMatchSnapshot();
2019-01-04 23:38:49 +00:00
});
});