@@ -210,7 +210,7 @@ describe('client', () => {
210210
211211 expect ( Upload . prototype . setToken ) . toHaveBeenCalledWith ( token ) ;
212212 expect ( Upload . prototype . setSecurity ) . toHaveBeenCalledWith ( defaultSecurity ) ;
213- expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined ) ;
213+ expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined , undefined ) ;
214214 } ) ;
215215
216216 it ( 'should be able to upload file with alt text' , async ( ) => {
@@ -233,7 +233,7 @@ describe('client', () => {
233233
234234 expect ( Upload . prototype . setToken ) . toHaveBeenCalledWith ( token ) ;
235235 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 ) ;
237237 } ) ;
238238
239239 it ( 'should be able to upload file without token and security' , async ( ) => {
@@ -251,7 +251,7 @@ describe('client', () => {
251251 urls : sessionURls ,
252252 } ) ;
253253
254- expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined ) ;
254+ expect ( Upload . prototype . upload ) . toHaveBeenCalledWith ( file , undefined , undefined ) ;
255255 } ) ;
256256
257257 it ( 'should emit error' , async ( ) => {
0 commit comments