import React from 'react'; import { mount } from 'enzyme'; import Search from '../Search'; import Button from '../../button'; import focusTest from '../../../tests/shared/focusTest'; describe('Input.Search', () => { focusTest(Search); it('should support custom button', () => { const wrapper = mount( ok} /> ); expect(wrapper.render()).toMatchSnapshot(); }); it('should support custom Button', () => { const wrapper = mount( ok} /> ); expect(wrapper.render()).toMatchSnapshot(); }); });