import React from 'react'; import { FormField } from '../source/components/FormField'; import { renderInSimpleTheme } from './helpers/theming'; const renderFormField = () =>
; test('FormField renders correctly', () => { expect( renderInSimpleTheme() ).toMatchSnapshot(); }); test('FormField renders with label', () => { expect( renderInSimpleTheme( ) ).toMatchSnapshot(); }); test('FormField renders an input element', () => { expect( renderInSimpleTheme( } /> ) ).toMatchSnapshot(); });