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