@@ -109,7 +109,7 @@ describe('main module', () => {
109109 . returns ( 1 )
110110
111111 sinon . stub ( this . instance , 'analyze' )
112- . withArgs ( input , true )
112+ . withArgs ( input )
113113 . resolves ( { issues : 'issues' , uuid : 'uuid' } )
114114
115115 sinon . stub ( this . instance , 'getStatus' )
@@ -304,7 +304,7 @@ describe('main module', () => {
304304 resolve ( { access : accessToken , refresh : refreshToken } )
305305 } ) )
306306 sinon . stub ( requester , 'do' )
307- . withArgs ( { data, timeout } , accessToken , parsedApiUrl )
307+ . withArgs ( { data } , accessToken , parsedApiUrl )
308308 . returns ( new Promise ( resolve => {
309309 resolve ( { uuid, status : 'Finished' } )
310310 } ) )
@@ -316,7 +316,7 @@ describe('main module', () => {
316316 . returns ( new Promise ( resolve => {
317317 resolve ( issues )
318318 } ) )
319- await this . instance . analyze ( { data, timeout } ) . should . eventually . deep . equal ( { issues, uuid } )
319+ await this . instance . analyze ( { data } , timeout ) . should . eventually . deep . equal ( { issues, uuid } )
320320 poller . getIssues . restore ( )
321321 } )
322322
@@ -328,14 +328,14 @@ describe('main module', () => {
328328 resolve ( { access : accessToken , refresh : refreshToken } )
329329 } ) )
330330 sinon . stub ( requester , 'do' )
331- . withArgs ( { data, timeout } , accessToken , parsedApiUrl )
331+ . withArgs ( { data } , accessToken , parsedApiUrl )
332332 . returns ( new Promise ( resolve => {
333333 resolve ( { uuid } )
334334 } ) )
335335 sinon . stub ( poller , 'do' )
336336 . withArgs ( uuid , this . instance , timeout , armlet . defaultInitialDelay , undefined )
337337 . resolves ( issues )
338- await this . instance . analyze ( { data, timeout } ) . should . eventually . deep . equal ( { issues, uuid } )
338+ await this . instance . analyze ( { data } , timeout ) . should . eventually . deep . equal ( { issues, uuid } )
339339 } )
340340
341341 it ( 'should pass initial delay option to poller' , async ( ) => {
@@ -347,7 +347,7 @@ describe('main module', () => {
347347 resolve ( { access : accessToken , refresh : refreshToken } )
348348 } ) )
349349 sinon . stub ( requester , 'do' )
350- . withArgs ( { data, timeout , initialDelay } , accessToken , parsedApiUrl )
350+ . withArgs ( { data } , accessToken , parsedApiUrl )
351351 . returns ( new Promise ( resolve => {
352352 resolve ( { uuid } )
353353 } ) )
@@ -356,7 +356,7 @@ describe('main module', () => {
356356 . returns ( new Promise ( resolve => {
357357 resolve ( issues )
358358 } ) )
359- await this . instance . analyze ( { data, timeout, initialDelay } ) . should . eventually . deep . equal ( { issues, uuid } )
359+ await this . instance . analyze ( { data } , timeout , initialDelay ) . should . eventually . deep . equal ( { issues, uuid } )
360360 } )
361361 } )
362362
0 commit comments