@@ -5,8 +5,6 @@ const chai = require("chai"),
55const Constants = require ( "../../../../bin/helpers/constants" ) ,
66 logger = require ( "../../../../bin/helpers/logger" ) . winstonLogger ,
77 testObjects = require ( "../../support/fixtures/testObjects" ) ;
8- const { initTimeComponents, markBlockStart, markBlockEnd } = require ( "../../../../bin/helpers/timeComponents" ) ;
9- const { setHeaded, setupLocalTesting, stopLocalBinary, setUserSpecs, setLocalConfigFile } = require ( "../../../../bin/helpers/utils" ) ;
108
119const proxyquire = require ( "proxyquire" ) . noCallThru ( ) ;
1210
@@ -665,6 +663,8 @@ describe("runs", () => {
665663 initTimeComponentsStub = sandbox . stub ( ) ;
666664 markBlockStartStub = sandbox . stub ( ) ;
667665 markBlockEndStub = sandbox . stub ( ) ;
666+ stopLocalBinaryStub = sandbox . stub ( ) ;
667+ nonEmptyArrayStub = sandbox . stub ( ) ;
668668 } ) ;
669669
670670 afterEach ( ( ) => {
@@ -707,6 +707,8 @@ describe("runs", () => {
707707 isUndefined : isUndefinedStub ,
708708 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
709709 setLocalConfigFile : setLocalConfigFileStub ,
710+ stopLocalBinary : stopLocalBinaryStub ,
711+ nonEmptyArray : nonEmptyArrayStub ,
710712 } ,
711713 '../helpers/capabilityHelper' : {
712714 validate : capabilityValidatorStub ,
@@ -745,6 +747,8 @@ describe("runs", () => {
745747 archiverStub . returns ( Promise . resolve ( "Zipping completed" ) ) ;
746748 checkUploadedStub . returns ( Promise . resolve ( { zipUrlPresent : false } ) )
747749 zipUploadStub . returns ( Promise . resolve ( "zip uploaded" ) ) ;
750+ stopLocalBinaryStub . returns ( Promise . resolve ( "nothing" ) ) ;
751+ nonEmptyArrayStub . returns ( false ) ;
748752 createBuildStub . returns ( Promise . resolve ( { message : 'Success' , build_id : 'random_build_id' , dashboard_url : dashboardUrl } ) ) ;
749753
750754 return runs ( args )
0 commit comments