@@ -115,6 +115,7 @@ describe("runs", () => {
115
115
setBrowsersStub = sandbox . stub ( ) ;
116
116
setConfigStub = sandbox . stub ( ) ;
117
117
setCLIModeStub = sandbox . stub ( ) ;
118
+ setGeolocationStub = sandbox . stub ( ) ;
118
119
} ) ;
119
120
120
121
afterEach ( ( ) => {
@@ -154,7 +155,8 @@ describe("runs", () => {
154
155
setSystemEnvs : setSystemEnvsStub ,
155
156
setBrowsers : setBrowsersStub ,
156
157
setConfig : setConfigStub ,
157
- setCLIMode : setCLIModeStub
158
+ setCLIMode : setCLIModeStub ,
159
+ setGeolocation : setGeolocationStub
158
160
} ,
159
161
'../helpers/capabilityHelper' : {
160
162
validate : capabilityValidatorStub
@@ -194,6 +196,7 @@ describe("runs", () => {
194
196
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
195
197
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
196
198
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
199
+ sinon . assert . calledOnce ( setGeolocationStub ) ;
197
200
sinon . assert . calledOnceWithExactly (
198
201
sendUsageReportStub ,
199
202
bsConfig ,
@@ -249,6 +252,7 @@ describe("runs", () => {
249
252
setBrowsersStub = sandbox . stub ( ) ;
250
253
setConfigStub = sandbox . stub ( ) ;
251
254
setCLIModeStub = sandbox . stub ( ) ;
255
+ setGeolocationStub = sandbox . stub ( ) ;
252
256
} ) ;
253
257
254
258
afterEach ( ( ) => {
@@ -290,7 +294,8 @@ describe("runs", () => {
290
294
setSystemEnvs : setSystemEnvsStub ,
291
295
setBrowsers : setBrowsersStub ,
292
296
setConfig : setConfigStub ,
293
- setCLIMode : setCLIModeStub
297
+ setCLIMode : setCLIModeStub ,
298
+ setGeolocation : setGeolocationStub
294
299
} ,
295
300
'../helpers/capabilityHelper' : {
296
301
validate : capabilityValidatorStub ,
@@ -348,6 +353,7 @@ describe("runs", () => {
348
353
sinon . assert . calledOnce ( deleteResultsStub ) ;
349
354
sinon . assert . calledOnce ( setDefaultsStub ) ;
350
355
sinon . assert . calledOnce ( setSystemEnvsStub ) ;
356
+ sinon . assert . calledOnce ( setGeolocationStub ) ;
351
357
sinon . assert . calledOnceWithExactly (
352
358
sendUsageReportStub ,
353
359
bsConfig ,
@@ -405,6 +411,7 @@ describe("runs", () => {
405
411
setBrowsersStub = sandbox . stub ( ) ;
406
412
setCLIModeStub = sandbox . stub ( ) ;
407
413
fetchZipSizeStub = sandbox . stub ( ) ;
414
+ setGeolocationStub = sandbox . stub ( ) ;
408
415
} ) ;
409
416
410
417
afterEach ( ( ) => {
@@ -448,6 +455,7 @@ describe("runs", () => {
448
455
setConfig : setConfigStub ,
449
456
setCLIMode : setCLIModeStub ,
450
457
fetchZipSize : fetchZipSizeStub ,
458
+ setGeolocation : setGeolocationStub ,
451
459
} ,
452
460
'../helpers/capabilityHelper' : {
453
461
validate : capabilityValidatorStub ,
@@ -507,6 +515,7 @@ describe("runs", () => {
507
515
sinon . assert . calledOnce ( deleteResultsStub ) ;
508
516
sinon . assert . calledOnce ( setDefaultsStub ) ;
509
517
sinon . assert . calledOnce ( setSystemEnvsStub ) ;
518
+ sinon . assert . calledOnce ( setGeolocationStub ) ;
510
519
sinon . assert . calledOnceWithExactly (
511
520
sendUsageReportStub ,
512
521
bsConfig ,
@@ -569,6 +578,7 @@ describe("runs", () => {
569
578
setBrowsersStub = sandbox . stub ( ) ;
570
579
setCLIModeStub = sandbox . stub ( ) ;
571
580
fetchZipSizeStub = sandbox . stub ( ) ;
581
+ setGeolocationStub = sandbox . stub ( ) ;
572
582
} ) ;
573
583
574
584
afterEach ( ( ) => {
@@ -613,6 +623,7 @@ describe("runs", () => {
613
623
setConfig : setConfigStub ,
614
624
setCLIMode : setCLIModeStub ,
615
625
fetchZipSize : fetchZipSizeStub ,
626
+ setGeolocation : setGeolocationStub ,
616
627
} ,
617
628
'../helpers/capabilityHelper' : {
618
629
validate : capabilityValidatorStub ,
@@ -683,6 +694,7 @@ describe("runs", () => {
683
694
sinon . assert . calledOnce ( deleteResultsStub ) ;
684
695
sinon . assert . calledOnce ( setDefaultsStub ) ;
685
696
sinon . assert . calledOnce ( setSystemEnvsStub ) ;
697
+ sinon . assert . calledOnce ( setGeolocationStub ) ;
686
698
687
699
sinon . assert . calledOnceWithExactly (
688
700
sendUsageReportStub ,
@@ -759,6 +771,7 @@ describe("runs", () => {
759
771
setCLIModeStub = sandbox . stub ( ) ;
760
772
setProcessHooksStub = sandbox . stub ( ) ;
761
773
fetchZipSizeStub = sandbox . stub ( ) ;
774
+ setGeolocationStub = sandbox . stub ( ) ;
762
775
} ) ;
763
776
764
777
afterEach ( ( ) => {
@@ -771,7 +784,7 @@ describe("runs", () => {
771
784
let errorCode = null ;
772
785
let message = `Success! ${ Constants . userMessages . BUILD_CREATED } with build id: random_build_id` ;
773
786
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 }
787
+ 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
788
776
789
const runs = proxyquire ( '../../../../bin/commands/runs' , {
777
790
'../helpers/utils' : {
@@ -811,6 +824,7 @@ describe("runs", () => {
811
824
setCLIMode : setCLIModeStub ,
812
825
setProcessHooks : setProcessHooksStub ,
813
826
fetchZipSize : fetchZipSizeStub ,
827
+ setGeolocation : setGeolocationStub ,
814
828
} ,
815
829
'../helpers/capabilityHelper' : {
816
830
validate : capabilityValidatorStub ,
@@ -898,6 +912,7 @@ describe("runs", () => {
898
912
sinon . assert . calledOnce ( deleteResultsStub ) ;
899
913
sinon . assert . calledOnce ( setDefaultsStub ) ;
900
914
sinon . assert . calledOnce ( setSystemEnvsStub ) ;
915
+ sinon . assert . calledOnce ( setGeolocationStub ) ;
901
916
sinon . assert . match (
902
917
sendUsageReportStub . getCall ( 0 ) . args ,
903
918
[
0 commit comments