import React from 'react';
import { shallow } from 'enzyme';
import PageTemplate from './PageTemplate';
const env = { ...process.env };
afterEach(() => {
process.env = env;
});
beforeEach(() => {
process.env = {
...process.env,
BUILD_ID: 'test-id'
};
});
test('PageTemplate rendering', () => {
const component = shallow(
Content
);
expect(component).toMatchSnapshot();
});
test('PageTemplate rendering with title', () => {
const component = shallow(
Content
);
expect(component).toMatchSnapshot();
});