diff --git a/src/components/PageTemplate/__snapshots__/test.js.snap b/src/components/PageTemplate/__snapshots__/test.js.snap deleted file mode 100644 index eff8e67..0000000 --- a/src/components/PageTemplate/__snapshots__/test.js.snap +++ /dev/null @@ -1,74 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`PageTemplate rendering 1`] = ` - - - - - - - - Regexper - - - -
-

- Content -

-
- - -`; - -exports[`PageTemplate rendering with title 1`] = ` - - - - - - - - Regexper - - Example - - - -
-

- Content -

-
- - -`; diff --git a/src/components/PageTemplate/index.js b/src/components/PageTemplate/index.js deleted file mode 100644 index 709f7d5..0000000 --- a/src/components/PageTemplate/index.js +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react'; -import ReactDOMServer from 'react-dom/server'; -import PropTypes from 'prop-types'; - -import pkg from '../../../package.json'; - -const PageTemplate = ({ title, children }) => ( - - - - - - - - - Regexper{ title && (' - ' + title) } - - -
- { children } -
- - -); - -PageTemplate.propTypes = { - title: PropTypes.string, - children: PropTypes.oneOfType([ - PropTypes.arrayOf(PropTypes.node), - PropTypes.node - ]) -}; - -const renderToString = content => '' + ReactDOMServer.renderToString(content); - -export default PageTemplate; -export { renderToString }; diff --git a/src/components/PageTemplate/test.js b/src/components/PageTemplate/test.js deleted file mode 100644 index 7d8565e..0000000 --- a/src/components/PageTemplate/test.js +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; -import { shallow } from 'enzyme'; - -import PageTemplate from './index'; - -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(); -});