UNPKG

@muvehealth/fixins

Version:

Component library for Muvehealth

22 lines (18 loc) 600 B
/* eslint-disable function-paren-newline, comma-dangle */ import React from 'react' import Input from '../Input' import renderWithTheme from '../../testHelper' describe('Input', () => { it('renders a Text Input', () => { const tree = renderWithTheme(<Input />) expect(tree).toMatchSnapshot() }) it('renders a Pill Style Input', () => { const tree = renderWithTheme(<Input modifier="pill" />) expect(tree).toMatchSnapshot() }) it('renders a Input with a hidden label', () => { const tree = renderWithTheme(<Input noLabel />) expect(tree).toMatchSnapshot() }) })