@swrve/core
Version:
Core set of Swrve UI Components
24 lines (21 loc) • 530 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import Body from '../body'
import Row from '../row'
import Cell from '../cell'
describe('<Body/>', () => {
it('should render', () => {
const { container } = render(<Body />)
expect(container).toMatchSnapshot()
})
it('should render children correctly', () => {
const { container } = render(
<Body>
<Row>
<Cell>{'Cell One'}</Cell>
</Row>
</Body>
)
expect(container).toMatchSnapshot()
})
})