import React from 'react'; import { mount } from 'enzyme'; import TextField from './TextField'; describe(' component', () => { const props = { name: 'test', value: 'test', }; test('should render the component in default state', () => { const wrapper = mount(); expect(wrapper.html()).toMatchSnapshot(); }); });