@@ -249,6 +249,7 @@ describe("runs", () => {
249249 setBrowsersStub = sandbox . stub ( ) ;
250250 setConfigStub = sandbox . stub ( ) ;
251251 setCLIModeStub = sandbox . stub ( ) ;
252+ getVideoConfigStub = sandbox . stub ( ) ;
252253 } ) ;
253254
254255 afterEach ( ( ) => {
@@ -290,7 +291,8 @@ describe("runs", () => {
290291 setSystemEnvs : setSystemEnvsStub ,
291292 setBrowsers : setBrowsersStub ,
292293 setConfig : setConfigStub ,
293- setCLIMode : setCLIModeStub
294+ setCLIMode : setCLIModeStub ,
295+ getVideoConfig : getVideoConfigStub ,
294296 } ,
295297 '../helpers/capabilityHelper' : {
296298 validate : capabilityValidatorStub ,
@@ -339,6 +341,7 @@ describe("runs", () => {
339341 sinon . assert . calledOnce ( setHeadedStub ) ;
340342 sinon . assert . calledOnce ( setNoWrapStub ) ;
341343 sinon . assert . calledOnce ( setCLIModeStub ) ;
344+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
342345 sinon . assert . calledOnce ( setOtherConfigsStub ) ;
343346 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
344347 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -405,6 +408,7 @@ describe("runs", () => {
405408 setBrowsersStub = sandbox . stub ( ) ;
406409 setCLIModeStub = sandbox . stub ( ) ;
407410 fetchZipSizeStub = sandbox . stub ( ) ;
411+ getVideoConfigStub = sandbox . stub ( ) ;
408412 } ) ;
409413
410414 afterEach ( ( ) => {
@@ -448,6 +452,7 @@ describe("runs", () => {
448452 setConfig : setConfigStub ,
449453 setCLIMode : setCLIModeStub ,
450454 fetchZipSize : fetchZipSizeStub ,
455+ getVideoConfig : getVideoConfigStub ,
451456 } ,
452457 '../helpers/capabilityHelper' : {
453458 validate : capabilityValidatorStub ,
@@ -487,6 +492,7 @@ describe("runs", () => {
487492 sinon . assert . calledOnce ( getConfigPathStub ) ;
488493 sinon . assert . calledOnce ( getConfigPathStub ) ;
489494 sinon . assert . calledTwice ( fetchZipSizeStub ) ;
495+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
490496 sinon . assert . calledOnce ( setLocalModeStub ) ;
491497 sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
492498 sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
@@ -569,6 +575,7 @@ describe("runs", () => {
569575 setBrowsersStub = sandbox . stub ( ) ;
570576 setCLIModeStub = sandbox . stub ( ) ;
571577 fetchZipSizeStub = sandbox . stub ( ) ;
578+ getVideoConfigStub = sandbox . stub ( ) ;
572579 } ) ;
573580
574581 afterEach ( ( ) => {
@@ -613,6 +620,7 @@ describe("runs", () => {
613620 setConfig : setConfigStub ,
614621 setCLIMode : setCLIModeStub ,
615622 fetchZipSize : fetchZipSizeStub ,
623+ getVideoConfig : getVideoConfigStub ,
616624 } ,
617625 '../helpers/capabilityHelper' : {
618626 validate : capabilityValidatorStub ,
@@ -659,6 +667,7 @@ describe("runs", () => {
659667 sinon . assert . calledOnce ( getConfigPathStub ) ;
660668 sinon . assert . calledOnce ( getConfigPathStub ) ;
661669 sinon . assert . calledTwice ( fetchZipSizeStub ) ;
670+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
662671 sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
663672 sinon . assert . calledOnce ( setLocalModeStub ) ;
664673 sinon . assert . calledOnce ( setupLocalTestingStub ) ;
@@ -759,6 +768,7 @@ describe("runs", () => {
759768 setCLIModeStub = sandbox . stub ( ) ;
760769 setProcessHooksStub = sandbox . stub ( ) ;
761770 fetchZipSizeStub = sandbox . stub ( ) ;
771+ getVideoConfigStub = sandbox . stub ( ) ;
762772 } ) ;
763773
764774 afterEach ( ( ) => {
@@ -771,7 +781,7 @@ describe("runs", () => {
771781 let errorCode = null ;
772782 let message = `Success! ${ Constants . userMessages . BUILD_CREATED } with build id: random_build_id` ;
773783 let dashboardLink = `${ Constants . userMessages . VISIT_DASHBOARD } ${ dashboardUrl } ` ;
774- let data = { user_id : 1234 , parallels : 10 , time_components : { } , unique_id : 'random_hash' , package_error : 'test' , checkmd5_error : 'test' , build_id : 'random_build_id' , test_zip_size : 123 , npm_zip_size : 123 }
784+ let data = { user_id : 1234 , parallels : 10 , time_components : { } , unique_id : 'random_hash' , package_error : 'test' , checkmd5_error : 'test' , build_id : 'random_build_id' , test_zip_size : 123 , npm_zip_size : 123 , test_suite_zip_upload : 1 , package_zip_upload : 1 }
775785
776786 const runs = proxyquire ( '../../../../bin/commands/runs' , {
777787 '../helpers/utils' : {
@@ -811,6 +821,7 @@ describe("runs", () => {
811821 setCLIMode : setCLIModeStub ,
812822 setProcessHooks : setProcessHooksStub ,
813823 fetchZipSize : fetchZipSizeStub ,
824+ getVideoConfig : getVideoConfigStub ,
814825 } ,
815826 '../helpers/capabilityHelper' : {
816827 validate : capabilityValidatorStub ,
@@ -880,6 +891,7 @@ describe("runs", () => {
880891 sinon . assert . calledOnce ( setParallelsStub ) ;
881892 sinon . assert . calledOnce ( warnSpecLimitStub ) ;
882893 sinon . assert . calledTwice ( fetchZipSizeStub ) ;
894+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
883895 sinon . assert . calledOnce ( setLocalStub ) ;
884896 sinon . assert . calledOnce ( setLocalModeStub ) ;
885897 sinon . assert . calledOnce ( setupLocalTestingStub ) ;
0 commit comments