export default function fileMock ( type = 'image/jpg' ) { const blob = new Blob ( [ '' ] , { type } ) ; blob [ 'lastModifiedDate' ] = '' ; blob [ 'name' ] = type . replace ( /\//g , '.' ) ; return blob as File ; }