@@ -21,6 +21,7 @@ describe("runs", () => {
2121 beforeEach ( ( ) => {
2222 sandbox = sinon . createSandbox ( ) ;
2323 validateBstackJsonStub = sandbox . stub ( ) ;
24+ getConfigPathStub = sandbox . stub ( ) ;
2425 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
2526 sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
2627 return "end" ;
@@ -44,6 +45,7 @@ describe("runs", () => {
4445 getErrorCodeFromErr : getErrorCodeFromErrStub ,
4546 sendUsageReport : sendUsageReportStub ,
4647 setUsageReportingFlag : setUsageReportingFlagStub ,
48+ getConfigPath : getConfigPathStub
4749 } ,
4850 } ) ;
4951
@@ -54,6 +56,8 @@ describe("runs", () => {
5456 chai . assert . fail ( "Promise error" ) ;
5557 } )
5658 . catch ( ( error ) => {
59+ sinon . assert . calledOnce ( getConfigPathStub ) ;
60+ sinon . assert . calledOnce ( getConfigPathStub ) ;
5761 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
5862 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
5963 sinon . assert . calledOnce ( getErrorCodeFromErrStub ) ;
@@ -78,6 +82,7 @@ describe("runs", () => {
7882 setUsernameStub = sandbox . stub ( ) ;
7983 setAccessKeyStub = sandbox . stub ( ) ;
8084 setBuildNameStub = sandbox . stub ( ) ;
85+ getConfigPathStub = sandbox . stub ( ) ;
8186 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
8287 sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
8388 return "end" ;
@@ -104,7 +109,8 @@ describe("runs", () => {
104109 setUsageReportingFlag : setUsageReportingFlagStub ,
105110 setUsername : setUsernameStub ,
106111 setAccessKey : setAccessKeyStub ,
107- setBuildName : setBuildNameStub
112+ setBuildName : setBuildNameStub ,
113+ getConfigPath : getConfigPathStub
108114 } ,
109115 "../helpers/capabilityHelper" : {
110116 validate : capabilityValidatorStub ,
@@ -119,6 +125,8 @@ describe("runs", () => {
119125 chai . assert . fail ( "Promise error" ) ;
120126 } )
121127 . catch ( ( error ) => {
128+ sinon . assert . calledOnce ( getConfigPathStub ) ;
129+ sinon . assert . calledOnce ( getConfigPathStub ) ;
122130 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
123131 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
124132 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
@@ -143,6 +151,7 @@ describe("runs", () => {
143151 setParallelsStub = sandbox . stub ( ) ;
144152 setUsernameStub = sandbox . stub ( ) ;
145153 setAccessKeyStub = sandbox . stub ( ) ;
154+ getConfigPathStub = sandbox . stub ( ) ;
146155 setBuildNameStub = sandbox . stub ( ) ;
147156 validateBstackJsonStub = sandbox . stub ( ) ;
148157 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
@@ -173,6 +182,7 @@ describe("runs", () => {
173182 setAccessKey : setAccessKeyStub ,
174183 setBuildName : setBuildNameStub ,
175184 setUsageReportingFlag : setUsageReportingFlagStub ,
185+ getConfigPath : getConfigPathStub
176186 } ,
177187 "../helpers/capabilityHelper" : {
178188 validate : capabilityValidatorStub ,
@@ -194,6 +204,8 @@ describe("runs", () => {
194204 chai . assert . fail ( "Promise error" ) ;
195205 } )
196206 . catch ( ( error ) => {
207+ sinon . assert . calledOnce ( getConfigPathStub ) ;
208+ sinon . assert . calledOnce ( getConfigPathStub ) ;
197209 sinon . assert . calledOnce ( setParallelsStub )
198210 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
199211 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -222,6 +234,7 @@ describe("runs", () => {
222234 setUsernameStub = sandbox . stub ( ) ;
223235 setAccessKeyStub = sandbox . stub ( ) ;
224236 setBuildNameStub = sandbox . stub ( ) ;
237+ getConfigPathStub = sandbox . stub ( ) ;
225238 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
226239 sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
227240 return "end" ;
@@ -251,6 +264,7 @@ describe("runs", () => {
251264 setAccessKey : setAccessKeyStub ,
252265 setBuildName : setBuildNameStub ,
253266 setUsageReportingFlag : setUsageReportingFlagStub ,
267+ getConfigPath : getConfigPathStub
254268 } ,
255269 "../helpers/capabilityHelper" : {
256270 validate : capabilityValidatorStub ,
@@ -276,6 +290,8 @@ describe("runs", () => {
276290 chai . assert . fail ( "Promise error" ) ;
277291 } )
278292 . catch ( ( error ) => {
293+ sinon . assert . calledOnce ( getConfigPathStub ) ;
294+ sinon . assert . calledOnce ( getConfigPathStub ) ;
279295 sinon . assert . calledOnce ( setParallelsStub ) ;
280296 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
281297 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
@@ -308,6 +324,7 @@ describe("runs", () => {
308324 setUsernameStub = sandbox . stub ( ) ;
309325 setAccessKeyStub = sandbox . stub ( ) ;
310326 setBuildNameStub = sandbox . stub ( ) ;
327+ getConfigPathStub = sandbox . stub ( ) ;
311328 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
312329 sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
313330 return "end" ;
@@ -338,6 +355,7 @@ describe("runs", () => {
338355 setAccessKey : setAccessKeyStub ,
339356 setBuildName : setBuildNameStub ,
340357 setUsageReportingFlag : setUsageReportingFlagStub ,
358+ getConfigPath : getConfigPathStub
341359 } ,
342360 "../helpers/capabilityHelper" : {
343361 validate : capabilityValidatorStub ,
@@ -369,6 +387,8 @@ describe("runs", () => {
369387 chai . assert . fail ( "Promise error" ) ;
370388 } )
371389 . catch ( ( error ) => {
390+ sinon . assert . calledOnce ( getConfigPathStub ) ;
391+ sinon . assert . calledOnce ( getConfigPathStub ) ;
372392 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
373393 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
374394 sinon . assert . calledOnce ( setParallelsStub ) ;
@@ -405,6 +425,7 @@ describe("runs", () => {
405425 setUsernameStub = sandbox . stub ( ) ;
406426 setAccessKeyStub = sandbox . stub ( ) ;
407427 setBuildNameStub = sandbox . stub ( ) ;
428+ getConfigPathStub = sandbox . stub ( ) ;
408429 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
409430 sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
410431 return "end" ;
@@ -435,6 +456,7 @@ describe("runs", () => {
435456 setBuildName : setBuildNameStub ,
436457 setUsageReportingFlag : setUsageReportingFlagStub ,
437458 setParallels : setParallelsStub ,
459+ getConfigPath : getConfigPathStub
438460 } ,
439461 "../helpers/capabilityHelper" : {
440462 validate : capabilityValidatorStub ,
@@ -466,6 +488,8 @@ describe("runs", () => {
466488 chai . assert . fail ( "Promise error" ) ;
467489 } )
468490 . catch ( ( error ) => {
491+ sinon . assert . calledOnce ( getConfigPathStub ) ;
492+ sinon . assert . calledOnce ( getConfigPathStub ) ;
469493 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
470494 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
471495 sinon . assert . calledOnce ( setParallelsStub ) ;
0 commit comments