import * as React from 'react'; import { shallow } from 'enzyme'; import { CopyInput } from './CopyInput'; import TestComponentPropUtils from '../../../utils/TestComponentPropUtils'; describe('CopyInput', () => { it('renders without crashing', () => { shallow(); }); it('contains a text input by default', () => { const component = shallow(); expect(component.exists('input[type="text"]')).toBe(true); }); it('renders basic react props like id, className, and style as element attributes', () => { const shallowWrapper = shallow(); TestComponentPropUtils.expectsBasicReactProps(shallowWrapper, false); }); });