UNPKG

react-ions

Version:

An open source set of React components that implement Ambassador's Design and UX patterns.

18 lines (13 loc) 467 B
import React from 'react' import ValidatedField from '../ValidatedField' import Input from '../../Input' describe('ValidatedField', () => { let wrapper const ValidatedInput = ValidatedField(Input) it('should shallow render itself', () => { expect(shallow(<ValidatedInput error='Error here.' />)).toMatchSnapshot() }) it('should have a custom class', () => { expect(shallow(<ValidatedInput className='custom-class' />)).toMatchSnapshot() }) })