@swrve/core
Version:
Core set of Swrve UI Components
25 lines (22 loc) • 591 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import Footer from '../footer'
import Row from '../row'
import Cell from '../cell'
describe('<Footer/>', () => {
it('should render', () => {
const { container } = render(<Footer />)
expect(container).toMatchSnapshot()
})
it('should render children correctly', () => {
const { container } = render(
<Footer>
<Row>
<Cell>{'I am a cell!'}</Cell>
<Cell>{'I am also a cell!'}</Cell>
</Row>
</Footer>
)
expect(container).toMatchSnapshot()
})
})