UNPKG

@muvehealth/fixins

Version:

Component library for Muvehealth

20 lines (18 loc) 529 B
/* eslint-disable function-paren-newline, comma-dangle */ import React from 'react' import renderWithTheme from '../../testHelper' import SimpleListItem from '../SimpleListItem' describe('SimpleListItem', () => { it('renders a SimpleListItem', () => { const tree = renderWithTheme( <SimpleListItem list={[ { term: 'Allergy', desc: 'Peanuts' }, { term: 'Reaction', desc: 'Anaphylaxis' }, ]} handleDelete={() => {}} /> ) expect(tree).toMatchSnapshot() }) })