@@ -5,8 +5,6 @@ const chai = require("chai"),
5
5
const Constants = require ( "../../../../bin/helpers/constants" ) ,
6
6
logger = require ( "../../../../bin/helpers/logger" ) . winstonLogger ,
7
7
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" ) ;
10
8
11
9
const proxyquire = require ( "proxyquire" ) . noCallThru ( ) ;
12
10
@@ -665,6 +663,8 @@ describe("runs", () => {
665
663
initTimeComponentsStub = sandbox . stub ( ) ;
666
664
markBlockStartStub = sandbox . stub ( ) ;
667
665
markBlockEndStub = sandbox . stub ( ) ;
666
+ stopLocalBinaryStub = sandbox . stub ( ) ;
667
+ nonEmptyArrayStub = sandbox . stub ( ) ;
668
668
} ) ;
669
669
670
670
afterEach ( ( ) => {
@@ -707,6 +707,8 @@ describe("runs", () => {
707
707
isUndefined : isUndefinedStub ,
708
708
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
709
709
setLocalConfigFile : setLocalConfigFileStub ,
710
+ stopLocalBinary : stopLocalBinaryStub ,
711
+ nonEmptyArray : nonEmptyArrayStub ,
710
712
} ,
711
713
'../helpers/capabilityHelper' : {
712
714
validate : capabilityValidatorStub ,
@@ -745,6 +747,8 @@ describe("runs", () => {
745
747
archiverStub . returns ( Promise . resolve ( "Zipping completed" ) ) ;
746
748
checkUploadedStub . returns ( Promise . resolve ( { zipUrlPresent : false } ) )
747
749
zipUploadStub . returns ( Promise . resolve ( "zip uploaded" ) ) ;
750
+ stopLocalBinaryStub . returns ( Promise . resolve ( "nothing" ) ) ;
751
+ nonEmptyArrayStub . returns ( false ) ;
748
752
createBuildStub . returns ( Promise . resolve ( { message : 'Success' , build_id : 'random_build_id' , dashboard_url : dashboardUrl } ) ) ;
749
753
750
754
return runs ( args )
0 commit comments