Tom Kirkpatrick
6 years ago
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||
|
import React from 'react' |
||||
|
import { shallow } from 'enzyme' |
||||
|
import toJSON from 'enzyme-to-json' |
||||
|
import { Message } from 'components/UI' |
||||
|
|
||||
|
describe('component.UI.Message', () => { |
||||
|
it('should render correctly with default props', () => { |
||||
|
const wrapper = shallow(<Message>A message</Message>) |
||||
|
expect(toJSON(wrapper)).toMatchSnapshot() |
||||
|
}) |
||||
|
}) |
@ -0,0 +1,17 @@ |
|||||
|
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
|
||||
|
exports[`component.UI.Message should render correctly with default props 1`] = ` |
||||
|
<Styled(Styled(styled.div)) |
||||
|
alignItems="center" |
||||
|
> |
||||
|
<styled.div |
||||
|
mr={1} |
||||
|
/> |
||||
|
<Styled(styled.div) |
||||
|
fontSize="s" |
||||
|
fontWeight="normal" |
||||
|
> |
||||
|
A message |
||||
|
</Styled(styled.div)> |
||||
|
</Styled(Styled(styled.div))> |
||||
|
`; |
Loading…
Reference in new issue