@@ -5,9 +5,7 @@ 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" ) ;
10-
8+
119const proxyquire = require ( "proxyquire" ) . noCallThru ( ) ;
1210
1311chai . use ( chaiAsPromised ) ;
@@ -108,6 +106,8 @@ describe("runs", () => {
108106 setDefaultsStub = sandbox . stub ( ) ;
109107 setLocalModeStub = sandbox . stub ( ) ;
110108 setLocalConfigFileStub = sandbox . stub ( ) ;
109+ setBrowsersStub = sandbox . stub ( ) ;
110+ setConfigStub = sandbox . stub ( ) ;
111111 } ) ;
112112
113113 afterEach ( ( ) => {
@@ -143,7 +143,9 @@ describe("runs", () => {
143143 isJSONInvalid : isJSONInvalidStub ,
144144 setLocalMode : setLocalModeStub ,
145145 setLocalConfigFile : setLocalConfigFileStub ,
146- setSystemEnvs : setSystemEnvsStub
146+ setSystemEnvs : setSystemEnvsStub ,
147+ setBrowsers : setBrowsersStub ,
148+ setConfig : setConfigStub
147149 } ,
148150 '../helpers/capabilityHelper' : {
149151 validate : capabilityValidatorStub
@@ -176,6 +178,7 @@ describe("runs", () => {
176178 sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
177179 sinon . assert . calledOnce ( setHeadedStub ) ;
178180 sinon . assert . calledOnce ( setNoWrapStub ) ;
181+ sinon . assert . calledOnce ( setConfigStub ) ;
179182 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
180183 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
181184 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
@@ -226,6 +229,8 @@ describe("runs", () => {
226229 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
227230 setDefaultsStub = sandbox . stub ( ) ;
228231 setLocalConfigFileStub = sandbox . stub ( ) ;
232+ setBrowsersStub = sandbox . stub ( ) ;
233+ setConfigStub = sandbox . stub ( ) ;
229234 } ) ;
230235
231236 afterEach ( ( ) => {
@@ -262,7 +267,9 @@ describe("runs", () => {
262267 setDefaults : setDefaultsStub ,
263268 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
264269 setLocalConfigFile : setLocalConfigFileStub ,
265- setSystemEnvs : setSystemEnvsStub
270+ setSystemEnvs : setSystemEnvsStub ,
271+ setBrowsers : setBrowsersStub ,
272+ setConfig : setConfigStub
266273 } ,
267274 '../helpers/capabilityHelper' : {
268275 validate : capabilityValidatorStub ,
@@ -359,6 +366,8 @@ describe("runs", () => {
359366 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
360367 setDefaultsStub = sandbox . stub ( ) ;
361368 setLocalConfigFileStub = sandbox . stub ( ) ;
369+ setConfigStub = sandbox . stub ( ) ;
370+ setBrowsersStub = sandbox . stub ( ) ;
362371 } ) ;
363372
364373 afterEach ( ( ) => {
@@ -395,7 +404,9 @@ describe("runs", () => {
395404 deleteResults : deleteResultsStub ,
396405 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
397406 setDefaults : setDefaultsStub ,
398- setLocalConfigFile : setLocalConfigFileStub
407+ setLocalConfigFile : setLocalConfigFileStub ,
408+ setBrowsers : setBrowsersStub ,
409+ setConfig : setConfigStub
399410 } ,
400411 '../helpers/capabilityHelper' : {
401412 validate : capabilityValidatorStub ,
@@ -497,6 +508,8 @@ describe("runs", () => {
497508 setDefaultsStub = sandbox . stub ( ) ;
498509 stopLocalBinaryStub = sandbox . stub ( ) ;
499510 setLocalConfigFileStub = sandbox . stub ( ) ;
511+ setConfigStub = sandbox . stub ( ) ;
512+ setBrowsersStub = sandbox . stub ( ) ;
500513 } ) ;
501514
502515 afterEach ( ( ) => {
@@ -534,7 +547,9 @@ describe("runs", () => {
534547 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
535548 setDefaults : setDefaultsStub ,
536549 stopLocalBinary : stopLocalBinaryStub ,
537- setLocalConfigFile : setLocalConfigFileStub
550+ setLocalConfigFile : setLocalConfigFileStub ,
551+ setBrowsers : setBrowsersStub ,
552+ setConfig : setConfigStub
538553 } ,
539554 '../helpers/capabilityHelper' : {
540555 validate : capabilityValidatorStub ,
@@ -652,6 +667,8 @@ describe("runs", () => {
652667 initTimeComponentsStub = sandbox . stub ( ) ;
653668 markBlockStartStub = sandbox . stub ( ) ;
654669 markBlockEndStub = sandbox . stub ( ) ;
670+ setConfigStub = sandbox . stub ( ) ;
671+ setBrowsersStub = sandbox . stub ( ) ;
655672 } ) ;
656673
657674 afterEach ( ( ) => {
@@ -693,6 +710,8 @@ describe("runs", () => {
693710 isUndefined : isUndefinedStub ,
694711 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
695712 setLocalConfigFile : setLocalConfigFileStub ,
713+ setBrowsers : setBrowsersStub ,
714+ setConfig : setConfigStub
696715 } ,
697716 '../helpers/capabilityHelper' : {
698717 validate : capabilityValidatorStub ,
0 commit comments