@@ -249,6 +249,7 @@ describe("runs", () => {
249
249
setBrowsersStub = sandbox . stub ( ) ;
250
250
setConfigStub = sandbox . stub ( ) ;
251
251
setCLIModeStub = sandbox . stub ( ) ;
252
+ getVideoConfigStub = sandbox . stub ( ) ;
252
253
} ) ;
253
254
254
255
afterEach ( ( ) => {
@@ -290,7 +291,8 @@ describe("runs", () => {
290
291
setSystemEnvs : setSystemEnvsStub ,
291
292
setBrowsers : setBrowsersStub ,
292
293
setConfig : setConfigStub ,
293
- setCLIMode : setCLIModeStub
294
+ setCLIMode : setCLIModeStub ,
295
+ getVideoConfig : getVideoConfigStub ,
294
296
} ,
295
297
'../helpers/capabilityHelper' : {
296
298
validate : capabilityValidatorStub ,
@@ -339,6 +341,7 @@ describe("runs", () => {
339
341
sinon . assert . calledOnce ( setHeadedStub ) ;
340
342
sinon . assert . calledOnce ( setNoWrapStub ) ;
341
343
sinon . assert . calledOnce ( setCLIModeStub ) ;
344
+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
342
345
sinon . assert . calledOnce ( setOtherConfigsStub ) ;
343
346
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
344
347
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -405,6 +408,7 @@ describe("runs", () => {
405
408
setBrowsersStub = sandbox . stub ( ) ;
406
409
setCLIModeStub = sandbox . stub ( ) ;
407
410
fetchZipSizeStub = sandbox . stub ( ) ;
411
+ getVideoConfigStub = sandbox . stub ( ) ;
408
412
} ) ;
409
413
410
414
afterEach ( ( ) => {
@@ -448,6 +452,7 @@ describe("runs", () => {
448
452
setConfig : setConfigStub ,
449
453
setCLIMode : setCLIModeStub ,
450
454
fetchZipSize : fetchZipSizeStub ,
455
+ getVideoConfig : getVideoConfigStub ,
451
456
} ,
452
457
'../helpers/capabilityHelper' : {
453
458
validate : capabilityValidatorStub ,
@@ -487,6 +492,7 @@ describe("runs", () => {
487
492
sinon . assert . calledOnce ( getConfigPathStub ) ;
488
493
sinon . assert . calledOnce ( getConfigPathStub ) ;
489
494
sinon . assert . calledTwice ( fetchZipSizeStub ) ;
495
+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
490
496
sinon . assert . calledOnce ( setLocalModeStub ) ;
491
497
sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
492
498
sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
@@ -569,6 +575,7 @@ describe("runs", () => {
569
575
setBrowsersStub = sandbox . stub ( ) ;
570
576
setCLIModeStub = sandbox . stub ( ) ;
571
577
fetchZipSizeStub = sandbox . stub ( ) ;
578
+ getVideoConfigStub = sandbox . stub ( ) ;
572
579
} ) ;
573
580
574
581
afterEach ( ( ) => {
@@ -613,6 +620,7 @@ describe("runs", () => {
613
620
setConfig : setConfigStub ,
614
621
setCLIMode : setCLIModeStub ,
615
622
fetchZipSize : fetchZipSizeStub ,
623
+ getVideoConfig : getVideoConfigStub ,
616
624
} ,
617
625
'../helpers/capabilityHelper' : {
618
626
validate : capabilityValidatorStub ,
@@ -659,6 +667,7 @@ describe("runs", () => {
659
667
sinon . assert . calledOnce ( getConfigPathStub ) ;
660
668
sinon . assert . calledOnce ( getConfigPathStub ) ;
661
669
sinon . assert . calledTwice ( fetchZipSizeStub ) ;
670
+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
662
671
sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
663
672
sinon . assert . calledOnce ( setLocalModeStub ) ;
664
673
sinon . assert . calledOnce ( setupLocalTestingStub ) ;
@@ -759,6 +768,7 @@ describe("runs", () => {
759
768
setCLIModeStub = sandbox . stub ( ) ;
760
769
setProcessHooksStub = sandbox . stub ( ) ;
761
770
fetchZipSizeStub = sandbox . stub ( ) ;
771
+ getVideoConfigStub = sandbox . stub ( ) ;
762
772
} ) ;
763
773
764
774
afterEach ( ( ) => {
@@ -771,7 +781,7 @@ describe("runs", () => {
771
781
let errorCode = null ;
772
782
let message = `Success! ${ Constants . userMessages . BUILD_CREATED } with build id: random_build_id` ;
773
783
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 }
775
785
776
786
const runs = proxyquire ( '../../../../bin/commands/runs' , {
777
787
'../helpers/utils' : {
@@ -811,6 +821,7 @@ describe("runs", () => {
811
821
setCLIMode : setCLIModeStub ,
812
822
setProcessHooks : setProcessHooksStub ,
813
823
fetchZipSize : fetchZipSizeStub ,
824
+ getVideoConfig : getVideoConfigStub ,
814
825
} ,
815
826
'../helpers/capabilityHelper' : {
816
827
validate : capabilityValidatorStub ,
@@ -880,6 +891,7 @@ describe("runs", () => {
880
891
sinon . assert . calledOnce ( setParallelsStub ) ;
881
892
sinon . assert . calledOnce ( warnSpecLimitStub ) ;
882
893
sinon . assert . calledTwice ( fetchZipSizeStub ) ;
894
+ sinon . assert . calledOnce ( getVideoConfigStub ) ;
883
895
sinon . assert . calledOnce ( setLocalStub ) ;
884
896
sinon . assert . calledOnce ( setLocalModeStub ) ;
885
897
sinon . assert . calledOnce ( setupLocalTestingStub ) ;
0 commit comments