]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove redundant type cast (#230)
authorCr <631807682@qq.com>
Sat, 12 Oct 2019 14:46:10 +0000 (22:46 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 12 Oct 2019 14:46:10 +0000 (10:46 -0400)
packages/runtime-core/__tests__/helpers/toHandlers.spec.ts

index a71ef3893f5940596242fb2990c5f6b7c0c61cdc..e07cf141699d8fb3f3c65f8310b6ba51c8c48a23 100644 (file)
@@ -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.'