UNPKG

@muvehealth/fixins

Version:

Component library for Muvehealth

31 lines (29 loc) 811 B
/* eslint-disable function-paren-newline, comma-dangle */ import React from 'react' import renderWithTheme from '../../testHelper' import Multiselect from '../Multiselect' describe('Multiselect', () => { it('renders a Multiselect', () => { const tree = renderWithTheme( <Multiselect label="Multiselect" name="multiselect" options={[ { label: 'One', value: 'One', tag: 'One' }, { label: 'Two', value: 'Two', tag: 'Two' }, { label: 'Three', value: 'Three', tag: 'Three' }, ]} placeholder="Choose" input={{ value: ['One', 'Two'], }} meta={{ touched: false, error: false, }} handleChangeValue={() => {}} /> ) expect(tree).toMatchSnapshot() }) })