import { mount , later } from '../index' ; import { Upload as NativeUpload } from '@src' ; const Upload = NativeUpload as any ; later ; describe ( 'upload' , ( ) => { test ( 'disabled' , ( ) => { const wrapper = mount ( Upload , { propsData : { disabled : true , } , } ) ; const isClick = ( wrapper . vm as any ) . handleClick ( ) ; expect ( isClick ) . toBeFalsy ( ) ; } ) ; } ) ;