@@ -210,7 +210,7 @@ describe('client', () => {
210
210
211
211
expect ( Upload . prototype . setToken ) . toHaveBeenCalledWith ( token ) ;
212
212
expect ( Upload . prototype . setSecurity ) . toHaveBeenCalledWith ( defaultSecurity ) ;
213
- expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined ) ;
213
+ expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined , undefined ) ;
214
214
} ) ;
215
215
216
216
it ( 'should be able to upload file with alt text' , async ( ) => {
@@ -233,7 +233,7 @@ describe('client', () => {
233
233
234
234
expect ( Upload . prototype . setToken ) . toHaveBeenCalledWith ( token ) ;
235
235
expect ( Upload . prototype . setSecurity ) . toHaveBeenCalledWith ( defaultSecurity ) ;
236
- expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , uploadOptions . altText ) ;
236
+ expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , uploadOptions . altText , undefined ) ;
237
237
} ) ;
238
238
239
239
it ( 'should be able to upload file without token and security' , async ( ) => {
@@ -251,7 +251,7 @@ describe('client', () => {
251
251
urls : sessionURls ,
252
252
} ) ;
253
253
254
- expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined ) ;
254
+ expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined , undefined ) ;
255
255
} ) ;
256
256
257
257
it ( 'should emit error' , async ( ) => {
0 commit comments