import { TextField } from './TextField';
import { shallow } from 'enzyme';
import { Field, Formik } from 'formik';

describe('Snapshot Testing', () => {
  test('Required Props', () => {
    const textField = shallow(
      <Formik initialValues={{ name: '' }} onSubmit={() => undefined}>
        <Field component={TextField} type='text' name='field' />
      </Formik>
    );
    expect(textField).toMatchSnapshot();
  });
});
