From 036f0912cb9a5c98715326d13cb1e5a8733e19d8 Mon Sep 17 00:00:00 2001 From: a631807682 <631807682@qq.com> Date: Sat, 12 Oct 2019 17:00:02 +0800 Subject: [PATCH] refactor: redundant type assertion --- packages/runtime-core/__tests__/helpers/toHandlers.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts b/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts index a71ef3893f5..e07cf141699 100644 --- a/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts +++ b/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts @@ -5,8 +5,8 @@ describe('toHandlers', () => { mockWarn() it('should not accept non-objects', () => { - toHandlers((null as unknown) as any) - toHandlers((undefined as unknown) as any) + toHandlers(null as any) + toHandlers(undefined as any) expect( 'v-on with no argument expects an object value.'