Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(Header): add basic test
Browse files Browse the repository at this point in the history
feat(Header): add basic test
  • Loading branch information
Metnew committed Sep 10, 2017
1 parent 39a3358 commit 9da0ee7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/common/components/parts/Header/index.test.jsx
Original file line number Diff line number Diff line change
@@ -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(<Header {...props} />)
expect(toJson(component)).toMatchSnapshot()
})
})

0 comments on commit 9da0ee7

Please sign in to comment.