Parcourir la source

chore: remove redundant type cast (#230)

Cr il y a 6 ans
Parent
commit
64c7be3763
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/runtime-core/__tests__/helpers/toHandlers.spec.ts

+ 2 - 2
packages/runtime-core/__tests__/helpers/toHandlers.spec.ts

@@ -5,8 +5,8 @@ describe('toHandlers', () => {
   mockWarn()
   mockWarn()
 
 
   it('should not accept non-objects', () => {
   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(
     expect(
       'v-on with no argument expects an object value.'
       'v-on with no argument expects an object value.'