@@ -189,7 +189,7 @@ describe("runs", () => {
189189 setLocalIdentifierStub = sandbox . stub ( ) ;
190190 deleteResultsStub = sandbox . stub ( ) ;
191191 setDefaultAuthHashStub = sandbox . stub ( ) ;
192- getNumberOfSpecFilesStub = sandbox . stub ( ) ;
192+ getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
193193 } ) ;
194194
195195 afterEach ( ( ) => {
@@ -243,6 +243,7 @@ describe("runs", () => {
243243 . catch ( ( error ) => {
244244 sinon . assert . calledOnce ( getConfigPathStub ) ;
245245 sinon . assert . calledOnce ( getConfigPathStub ) ;
246+ sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
246247 sinon . assert . calledOnce ( setParallelsStub ) ;
247248 sinon . assert . calledOnce ( setLocalStub ) ;
248249 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
@@ -291,7 +292,7 @@ describe("runs", () => {
291292 setLocalIdentifierStub = sandbox . stub ( ) ;
292293 deleteResultsStub = sandbox . stub ( ) ;
293294 setDefaultAuthHashStub = sandbox . stub ( ) ;
294- getNumberOfSpecFilesStub = sandbox . stub ( ) ;
295+ getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
295296 } ) ;
296297
297298 afterEach ( ( ) => {
@@ -349,6 +350,7 @@ describe("runs", () => {
349350 . catch ( ( error ) => {
350351 sinon . assert . calledOnce ( getConfigPathStub ) ;
351352 sinon . assert . calledOnce ( getConfigPathStub ) ;
353+ sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
352354 sinon . assert . calledOnce ( setParallelsStub ) ;
353355 sinon . assert . calledOnce ( setLocalStub ) ;
354356 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
@@ -401,7 +403,7 @@ describe("runs", () => {
401403 setLocalIdentifierStub = sandbox . stub ( ) ;
402404 deleteResultsStub = sandbox . stub ( ) ;
403405 setDefaultAuthHashStub = sandbox . stub ( ) ;
404- getNumberOfSpecFilesStub = sandbox . stub ( ) ;
406+ getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
405407 } ) ;
406408
407409 afterEach ( ( ) => {
@@ -467,6 +469,7 @@ describe("runs", () => {
467469 sinon . assert . calledOnce ( getConfigPathStub ) ;
468470 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
469471 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
472+ sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
470473 sinon . assert . calledOnce ( setParallelsStub ) ;
471474 sinon . assert . calledOnce ( setLocalStub ) ;
472475 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
@@ -525,7 +528,7 @@ describe("runs", () => {
525528 isUndefinedStub = sandbox . stub ( ) ;
526529 setLocalStub = sandbox . stub ( ) ;
527530 setLocalIdentifierStub = sandbox . stub ( ) ;
528- getNumberOfSpecFilesStub = sandbox . stub ( ) ;
531+ getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
529532 } ) ;
530533
531534 afterEach ( ( ) => {
@@ -597,6 +600,7 @@ describe("runs", () => {
597600 sinon . assert . calledOnce ( getConfigPathStub ) ;
598601 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
599602 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
603+ sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
600604 sinon . assert . calledOnce ( setParallelsStub ) ;
601605 sinon . assert . calledOnce ( setLocalStub ) ;
602606 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
0 commit comments