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