You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
475 B

import React from 'react'
import renderer from 'react-test-renderer'
import { Panel } from 'components/UI'
describe('component.UI.Panel', () => {
it('should render correctly', () => {
const tree = renderer
.create(
<Panel>
<Panel.Header>Header here</Panel.Header>
<Panel.Body>Body here</Panel.Body>
<Panel.Footer>Footer here</Panel.Footer>
</Panel>
)
.toJSON()
expect(tree).toMatchSnapshot()
})
})