UNPKG

@muvehealth/fixins

Version:

Component library for Muvehealth

21 lines (18 loc) 570 B
/* eslint-disable function-paren-newline, comma-dangle */ import React from 'react' import renderWithTheme from '../../testHelper' import ErrorMessage from '../ErrorMessage' describe('ErrorMessage', () => { it('renders a ErrorMessage', () => { const tree = renderWithTheme( <ErrorMessage message="Error Message" /> ) expect(tree).toMatchSnapshot() }) it('renders a ErrorMessage is pill style', () => { const tree = renderWithTheme( <ErrorMessage isPillStyle message="Error Message" /> ) expect(tree).toMatchSnapshot() }) })