2019-03-24 17:01:03 +00:00
|
|
|
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';
|
2019-03-24 17:01:03 +00:00
|
|
|
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';
|
2019-01-06 18:25:33 +00:00
|
|
|
import { PrivacyPage } from 'pages/privacy';
|
2019-01-04 23:38:49 +00:00
|
|
|
|
|
|
|
describe('Privacy Page', () => {
|
|
|
|
test('rendering', () => {
|
2019-03-24 17:01:03 +00:00
|
|
|
const { asFragment } = render(
|
2019-01-06 18:25:33 +00:00
|
|
|
<PrivacyPage t={ mockT } />
|
2019-01-04 23:38:49 +00:00
|
|
|
);
|
2019-03-24 17:01:03 +00:00
|
|
|
expect(asFragment()).toMatchSnapshot();
|
2019-01-04 23:38:49 +00:00
|
|
|
});
|
|
|
|
});
|