From 3e15c0d9917589a661a4775a0b51fe06d4f4c820 Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Tue, 4 Jun 2024 17:39:52 +0800 Subject: [PATCH] fix: vue-test-uitls destory should be destroy (#1654) --- internals/vue-test-utils/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internals/vue-test-utils/src/index.ts b/internals/vue-test-utils/src/index.ts index 46bba849d..ab78ed40d 100644 --- a/internals/vue-test-utils/src/index.ts +++ b/internals/vue-test-utils/src/index.ts @@ -5,7 +5,7 @@ const mount = (inputComponent: any, options: MountingOptions = {}) => { 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 = {}) => { const wrapper = mount$(inputComponent, options) if (isVue2) { - wrapper.unmount = (wrapper as any).destory + wrapper.unmount = (wrapper as any).destroy } return wrapper