@@ -21,6 +21,7 @@ describe("runs", () => {
21
21
beforeEach ( ( ) => {
22
22
sandbox = sinon . createSandbox ( ) ;
23
23
validateBstackJsonStub = sandbox . stub ( ) ;
24
+ getConfigPathStub = sandbox . stub ( ) ;
24
25
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
25
26
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
26
27
return "end" ;
@@ -44,6 +45,7 @@ describe("runs", () => {
44
45
getErrorCodeFromErr : getErrorCodeFromErrStub ,
45
46
sendUsageReport : sendUsageReportStub ,
46
47
setUsageReportingFlag : setUsageReportingFlagStub ,
48
+ getConfigPath : getConfigPathStub
47
49
} ,
48
50
} ) ;
49
51
@@ -54,6 +56,8 @@ describe("runs", () => {
54
56
chai . assert . fail ( "Promise error" ) ;
55
57
} )
56
58
. catch ( ( error ) => {
59
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
60
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
57
61
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
58
62
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
59
63
sinon . assert . calledOnce ( getErrorCodeFromErrStub ) ;
@@ -78,6 +82,7 @@ describe("runs", () => {
78
82
setUsernameStub = sandbox . stub ( ) ;
79
83
setAccessKeyStub = sandbox . stub ( ) ;
80
84
setBuildNameStub = sandbox . stub ( ) ;
85
+ getConfigPathStub = sandbox . stub ( ) ;
81
86
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
82
87
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
83
88
return "end" ;
@@ -104,7 +109,8 @@ describe("runs", () => {
104
109
setUsageReportingFlag : setUsageReportingFlagStub ,
105
110
setUsername : setUsernameStub ,
106
111
setAccessKey : setAccessKeyStub ,
107
- setBuildName : setBuildNameStub
112
+ setBuildName : setBuildNameStub ,
113
+ getConfigPath : getConfigPathStub
108
114
} ,
109
115
"../helpers/capabilityHelper" : {
110
116
validate : capabilityValidatorStub ,
@@ -119,6 +125,8 @@ describe("runs", () => {
119
125
chai . assert . fail ( "Promise error" ) ;
120
126
} )
121
127
. catch ( ( error ) => {
128
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
129
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
122
130
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
123
131
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
124
132
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
@@ -143,6 +151,7 @@ describe("runs", () => {
143
151
setParallelsStub = sandbox . stub ( ) ;
144
152
setUsernameStub = sandbox . stub ( ) ;
145
153
setAccessKeyStub = sandbox . stub ( ) ;
154
+ getConfigPathStub = sandbox . stub ( ) ;
146
155
setBuildNameStub = sandbox . stub ( ) ;
147
156
validateBstackJsonStub = sandbox . stub ( ) ;
148
157
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
@@ -173,6 +182,7 @@ describe("runs", () => {
173
182
setAccessKey : setAccessKeyStub ,
174
183
setBuildName : setBuildNameStub ,
175
184
setUsageReportingFlag : setUsageReportingFlagStub ,
185
+ getConfigPath : getConfigPathStub
176
186
} ,
177
187
"../helpers/capabilityHelper" : {
178
188
validate : capabilityValidatorStub ,
@@ -194,6 +204,8 @@ describe("runs", () => {
194
204
chai . assert . fail ( "Promise error" ) ;
195
205
} )
196
206
. catch ( ( error ) => {
207
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
208
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
197
209
sinon . assert . calledOnce ( setParallelsStub )
198
210
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
199
211
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -222,6 +234,7 @@ describe("runs", () => {
222
234
setUsernameStub = sandbox . stub ( ) ;
223
235
setAccessKeyStub = sandbox . stub ( ) ;
224
236
setBuildNameStub = sandbox . stub ( ) ;
237
+ getConfigPathStub = sandbox . stub ( ) ;
225
238
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
226
239
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
227
240
return "end" ;
@@ -251,6 +264,7 @@ describe("runs", () => {
251
264
setAccessKey : setAccessKeyStub ,
252
265
setBuildName : setBuildNameStub ,
253
266
setUsageReportingFlag : setUsageReportingFlagStub ,
267
+ getConfigPath : getConfigPathStub
254
268
} ,
255
269
"../helpers/capabilityHelper" : {
256
270
validate : capabilityValidatorStub ,
@@ -276,6 +290,8 @@ describe("runs", () => {
276
290
chai . assert . fail ( "Promise error" ) ;
277
291
} )
278
292
. catch ( ( error ) => {
293
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
294
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
279
295
sinon . assert . calledOnce ( setParallelsStub ) ;
280
296
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
281
297
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -308,6 +324,7 @@ describe("runs", () => {
308
324
setUsernameStub = sandbox . stub ( ) ;
309
325
setAccessKeyStub = sandbox . stub ( ) ;
310
326
setBuildNameStub = sandbox . stub ( ) ;
327
+ getConfigPathStub = sandbox . stub ( ) ;
311
328
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
312
329
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
313
330
return "end" ;
@@ -338,6 +355,7 @@ describe("runs", () => {
338
355
setAccessKey : setAccessKeyStub ,
339
356
setBuildName : setBuildNameStub ,
340
357
setUsageReportingFlag : setUsageReportingFlagStub ,
358
+ getConfigPath : getConfigPathStub
341
359
} ,
342
360
"../helpers/capabilityHelper" : {
343
361
validate : capabilityValidatorStub ,
@@ -369,6 +387,8 @@ describe("runs", () => {
369
387
chai . assert . fail ( "Promise error" ) ;
370
388
} )
371
389
. catch ( ( error ) => {
390
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
391
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
372
392
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
373
393
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
374
394
sinon . assert . calledOnce ( setParallelsStub ) ;
@@ -405,6 +425,7 @@ describe("runs", () => {
405
425
setUsernameStub = sandbox . stub ( ) ;
406
426
setAccessKeyStub = sandbox . stub ( ) ;
407
427
setBuildNameStub = sandbox . stub ( ) ;
428
+ getConfigPathStub = sandbox . stub ( ) ;
408
429
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
409
430
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
410
431
return "end" ;
@@ -435,6 +456,7 @@ describe("runs", () => {
435
456
setBuildName : setBuildNameStub ,
436
457
setUsageReportingFlag : setUsageReportingFlagStub ,
437
458
setParallels : setParallelsStub ,
459
+ getConfigPath : getConfigPathStub
438
460
} ,
439
461
"../helpers/capabilityHelper" : {
440
462
validate : capabilityValidatorStub ,
@@ -466,6 +488,8 @@ describe("runs", () => {
466
488
chai . assert . fail ( "Promise error" ) ;
467
489
} )
468
490
. catch ( ( error ) => {
491
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
492
+ sinon . assert . calledOnce ( getConfigPathStub ) ;
469
493
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
470
494
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
471
495
sinon . assert . calledOnce ( setParallelsStub ) ;
0 commit comments