2018-02-11 20:58:59 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { shallow } from 'enzyme';
|
|
|
|
|
2018-02-14 01:18:26 +00:00
|
|
|
import { Header } from 'components/Header';
|
2018-02-11 20:58:59 +00:00
|
|
|
|
2018-02-14 02:38:10 +00:00
|
|
|
describe('Header', () => {
|
|
|
|
beforeEach(() => {
|
2018-02-15 22:27:15 +00:00
|
|
|
process.env.BANNER = 'testing';
|
2018-02-14 02:38:10 +00:00
|
|
|
});
|
2018-02-11 20:58:59 +00:00
|
|
|
|
2018-02-14 02:38:10 +00:00
|
|
|
test('rendering', () => {
|
|
|
|
const component = shallow(
|
2018-02-15 22:23:15 +00:00
|
|
|
<Header/>
|
2018-02-14 02:38:10 +00:00
|
|
|
);
|
|
|
|
expect(component).toMatchSnapshot();
|
|
|
|
});
|
2018-02-11 20:58:59 +00:00
|
|
|
});
|