UNPKG

@swrve/core

Version:

Core set of Swrve UI Components

16 lines (14 loc) 437 B
import React from 'react' import FormGroup from '../FormGroup' import Input from '../../input/input' import { render } from '@testing-library/react' describe('<FormGroup/>', () => { it('should render', () => { const { container } = render( <FormGroup label="Climate:" labelFor="climate"> <Input value="tropical" name="climate" id="climate" /> </FormGroup> ) expect(container).toMatchSnapshot() }) })