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

Commit

Permalink
feat(components/Logo): add test file
Browse files Browse the repository at this point in the history
feat(components/Logo): add test file
  • Loading branch information
Metnew committed Oct 18, 2017
1 parent e5a37bf commit de4d758
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/common/components/elements/Logo/index.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import Logo from 'components/elements/Logo'
import {shallow} from 'enzyme'
import toJson from 'enzyme-to-json'

const props = {
centered: true,
shape: 'circular'
}

describe('Logo component', () => {
it('same snapshot', () => {
const component = shallow(<Logo {...props} />)
expect(toJson(component)).toMatchSnapshot()
})
})

0 comments on commit de4d758

Please sign in to comment.