UNPKG

@swrve/core

Version:

Core set of Swrve UI Components

21 lines (18 loc) 499 B
import React from 'react' import { render } from '@testing-library/react' import ListItem from '../list-item' import List from '../list' describe('<List/>', () => { it('should render without content', () => { const { container } = render(<List />) expect(container).toMatchSnapshot() }) it('should render children correctly', () => { const { container } = render( <List> <ListItem>Test</ListItem> </List> ) expect(container).toMatchSnapshot() }) })