import { mount } from '@vue/test-utils' import { asyncExpect } from '@/tests/utils' import Search from '../Search' import Button from '../../button' import focusTest from '../../../tests/shared/focusTest' describe('Input.Search', () => { focusTest(Search) it('should support custom button', async () => { const wrapper = mount({ render () { return ok} /> }, }, { sync: false }) await asyncExpect(() => { expect(wrapper.html()).toMatchSnapshot() }) }) it('should support custom Button', async () => { const wrapper = mount({ render () { return ok} /> }, }, { sync: false }) await asyncExpect(() => { expect(wrapper.html()).toMatchSnapshot() }) }) })