@swrve/core
Version:
Core set of Swrve UI Components
16 lines (13 loc) • 433 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import ListItem from '../list-item'
describe('<ListItem/>', () => {
it('should render without content', () => {
const { container } = render(<ListItem />)
expect(container).toMatchSnapshot()
})
it('should render with content', () => {
const { container } = render(<ListItem>Test</ListItem>)
expect(container).toMatchSnapshot()
})
})