Moving Jest setup and consolidating

This commit is contained in:
Jeff Avallone
2018-02-15 17:27:15 -05:00
parent 2904519ff5
commit fcba4b75ec
4 changed files with 18 additions and 15 deletions
+1 -10
View File
@@ -3,18 +3,9 @@ import { shallow } from 'enzyme';
import { Header } from 'components/Header';
const env = { ...process.env };
describe('Header', () => {
afterEach(() => {
process.env = env;
});
beforeEach(() => {
process.env = {
...process.env,
BANNER: 'testing'
};
process.env.BANNER = 'testing';
});
test('rendering', () => {