From c57f4a80b4bc4011e1b3f7596693e8314ff0743b Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sat, 21 Nov 2020 20:50:00 +0800 Subject: [PATCH] test: fix typing issue --- test/event.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/event.ts b/test/event.ts index 458523f9a..2d923babd 100644 --- a/test/event.ts +++ b/test/event.ts @@ -1,5 +1,5 @@ -import Vue from 'vue'; -import { Wrapper } from '@vue/test-utils'; +import { ComponentPublicInstance } from 'vue'; +import { VueWrapper } from '@vue/test-utils'; function getTouch(el: HTMLElement | Window, x: number, y: number) { return { @@ -18,7 +18,7 @@ function getTouch(el: HTMLElement | Window, x: number, y: number) { // Trigger pointer/touch event export function trigger( - wrapper: Wrapper | HTMLElement | Window, + wrapper: VueWrapper | HTMLElement | Window, eventName: string, x = 0, y = 0,