Last active
September 11, 2018 22:24
-
-
Save kuroski/76fd95caabed4dfd54f8b3a0282b83a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { shallowMount, mount, createLocalVue } from '@vue/test-utils' | |
import ElementUI from 'element-ui' | |
import VUserSearchForm from '@/components/VUserSearchForm' | |
const localVue = createLocalVue() | |
localVue.use(ElementUI) | |
describe('VUserSearchForm', () => { | |
const build = () => { | |
const wrapper = shallowMount(VUserSearchForm, { localVue }) | |
return { | |
wrapper, | |
input: () => wrapper.find('input'), | |
button: () => wrapper.find('button'), | |
} | |
} | |
... | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment