diff --git a/src/components/PageTemplate.test.js b/src/components/PageTemplate.test.js index 8b272de..abdb7b7 100644 --- a/src/components/PageTemplate.test.js +++ b/src/components/PageTemplate.test.js @@ -3,6 +3,19 @@ import renderer from 'react-test-renderer'; import PageTemplate from './PageTemplate'; +const env = { ...process.env }; + +afterEach(() => { + process.env = env; +}); + +beforeEach(() => { + process.env = { + ...process.env, + BANNER: 'testing' + }; +}); + test('PageTemplate rendering', () => { const component = renderer.create( diff --git a/src/components/__snapshots__/PageTemplate.test.js.snap b/src/components/__snapshots__/PageTemplate.test.js.snap index af2faba..6162fc8 100644 --- a/src/components/__snapshots__/PageTemplate.test.js.snap +++ b/src/components/__snapshots__/PageTemplate.test.js.snap @@ -24,7 +24,7 @@ exports[`PageTemplate rendering 1`] = `

@@ -103,7 +103,7 @@ exports[`PageTemplate rendering with title 1`] = `