import * as React from 'react'; import { shallow } from 'enzyme'; import { Input } from './input'; const label = 'This is the label'; describe('Input Components', () => { describe('String Input Components', () => { const Base = (props: any) => ; test('Renders Basic', () => { const El = () => ; const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); test('Renders Placeholder', () => { const El = () => ; const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); test('Renders Numbers only', () => { const El = () => ; const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); test('Renders Email only', () => { const El = () => ; const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); test('Renders Input with pattern', () => { const El = () => ; const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); test('Renders Error', () => { const El = () => ( ); const Example: any = shallow(); expect(Example).toMatchSnapshot(); }); }); });