diff --git a/src/common/components/parts/Header/index.test.jsx b/src/common/components/parts/Header/index.test.jsx index e69de29b..9570ebc9 100644 --- a/src/common/components/parts/Header/index.test.jsx +++ b/src/common/components/parts/Header/index.test.jsx @@ -0,0 +1,18 @@ +import React from 'react' +import Header from 'components/parts/Header' +import {shallow} from 'enzyme' +import toJson from 'enzyme-to-json' + +const props = { + title: 'Dashboard', + toggleSidebar: () => ({}), + isLoggedIn: true, + isMobile: false +} + +describe('Header component', () => { + it('same snapshot at Dashboard on non-mobile screen', () => { + const component = shallow(
) + expect(toJson(component)).toMatchSnapshot() + }) +})