forked from opentiny/tiny-vue
fix: vue-test-uitls destory should be destroy (#1654)
This commit is contained in:
parent
336ef0a456
commit
3e15c0d991
|
@ -5,7 +5,7 @@ const mount = (inputComponent: any, options: MountingOptions<any> = {}) => {
|
|||
let mount$ = _mount
|
||||
|
||||
if (isVue2) {
|
||||
;(options as any).localVue = createLocalVue()
|
||||
; (options as any).localVue = createLocalVue()
|
||||
|
||||
if (options.props) {
|
||||
options.propsData = options.props
|
||||
|
@ -25,7 +25,7 @@ const mount = (inputComponent: any, options: MountingOptions<any> = {}) => {
|
|||
const wrapper = mount$(inputComponent, options)
|
||||
|
||||
if (isVue2) {
|
||||
wrapper.unmount = (wrapper as any).destory
|
||||
wrapper.unmount = (wrapper as any).destroy
|
||||
}
|
||||
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in New Issue