소스 검색

chore: remove redundant type cast (#230)

Cr 6 년 전
부모
커밋
64c7be3763
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()
 
   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.'