fix: vue-test-uitls destory should be destroy (#1654)

This commit is contained in:
zhangpaopao 2024-06-04 17:39:52 +08:00 committed by GitHub
parent 336ef0a456
commit 3e15c0d991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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