@@ -5,9 +5,7 @@ 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
13
11
chai . use ( chaiAsPromised ) ;
@@ -108,6 +106,8 @@ describe("runs", () => {
108
106
setDefaultsStub = sandbox . stub ( ) ;
109
107
setLocalModeStub = sandbox . stub ( ) ;
110
108
setLocalConfigFileStub = sandbox . stub ( ) ;
109
+ setBrowsersStub = sandbox . stub ( ) ;
110
+ setConfigStub = sandbox . stub ( ) ;
111
111
} ) ;
112
112
113
113
afterEach ( ( ) => {
@@ -143,7 +143,9 @@ describe("runs", () => {
143
143
isJSONInvalid : isJSONInvalidStub ,
144
144
setLocalMode : setLocalModeStub ,
145
145
setLocalConfigFile : setLocalConfigFileStub ,
146
- setSystemEnvs : setSystemEnvsStub
146
+ setSystemEnvs : setSystemEnvsStub ,
147
+ setBrowsers : setBrowsersStub ,
148
+ setConfig : setConfigStub
147
149
} ,
148
150
'../helpers/capabilityHelper' : {
149
151
validate : capabilityValidatorStub
@@ -176,6 +178,7 @@ describe("runs", () => {
176
178
sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
177
179
sinon . assert . calledOnce ( setHeadedStub ) ;
178
180
sinon . assert . calledOnce ( setNoWrapStub ) ;
181
+ sinon . assert . calledOnce ( setConfigStub ) ;
179
182
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
180
183
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
181
184
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
@@ -226,6 +229,8 @@ describe("runs", () => {
226
229
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
227
230
setDefaultsStub = sandbox . stub ( ) ;
228
231
setLocalConfigFileStub = sandbox . stub ( ) ;
232
+ setBrowsersStub = sandbox . stub ( ) ;
233
+ setConfigStub = sandbox . stub ( ) ;
229
234
} ) ;
230
235
231
236
afterEach ( ( ) => {
@@ -262,7 +267,9 @@ describe("runs", () => {
262
267
setDefaults : setDefaultsStub ,
263
268
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
264
269
setLocalConfigFile : setLocalConfigFileStub ,
265
- setSystemEnvs : setSystemEnvsStub
270
+ setSystemEnvs : setSystemEnvsStub ,
271
+ setBrowsers : setBrowsersStub ,
272
+ setConfig : setConfigStub
266
273
} ,
267
274
'../helpers/capabilityHelper' : {
268
275
validate : capabilityValidatorStub ,
@@ -359,6 +366,8 @@ describe("runs", () => {
359
366
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
360
367
setDefaultsStub = sandbox . stub ( ) ;
361
368
setLocalConfigFileStub = sandbox . stub ( ) ;
369
+ setConfigStub = sandbox . stub ( ) ;
370
+ setBrowsersStub = sandbox . stub ( ) ;
362
371
} ) ;
363
372
364
373
afterEach ( ( ) => {
@@ -395,7 +404,9 @@ describe("runs", () => {
395
404
deleteResults : deleteResultsStub ,
396
405
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
397
406
setDefaults : setDefaultsStub ,
398
- setLocalConfigFile : setLocalConfigFileStub
407
+ setLocalConfigFile : setLocalConfigFileStub ,
408
+ setBrowsers : setBrowsersStub ,
409
+ setConfig : setConfigStub
399
410
} ,
400
411
'../helpers/capabilityHelper' : {
401
412
validate : capabilityValidatorStub ,
@@ -497,6 +508,8 @@ describe("runs", () => {
497
508
setDefaultsStub = sandbox . stub ( ) ;
498
509
stopLocalBinaryStub = sandbox . stub ( ) ;
499
510
setLocalConfigFileStub = sandbox . stub ( ) ;
511
+ setConfigStub = sandbox . stub ( ) ;
512
+ setBrowsersStub = sandbox . stub ( ) ;
500
513
} ) ;
501
514
502
515
afterEach ( ( ) => {
@@ -534,7 +547,9 @@ describe("runs", () => {
534
547
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
535
548
setDefaults : setDefaultsStub ,
536
549
stopLocalBinary : stopLocalBinaryStub ,
537
- setLocalConfigFile : setLocalConfigFileStub
550
+ setLocalConfigFile : setLocalConfigFileStub ,
551
+ setBrowsers : setBrowsersStub ,
552
+ setConfig : setConfigStub
538
553
} ,
539
554
'../helpers/capabilityHelper' : {
540
555
validate : capabilityValidatorStub ,
@@ -652,6 +667,8 @@ describe("runs", () => {
652
667
initTimeComponentsStub = sandbox . stub ( ) ;
653
668
markBlockStartStub = sandbox . stub ( ) ;
654
669
markBlockEndStub = sandbox . stub ( ) ;
670
+ setConfigStub = sandbox . stub ( ) ;
671
+ setBrowsersStub = sandbox . stub ( ) ;
655
672
} ) ;
656
673
657
674
afterEach ( ( ) => {
@@ -693,6 +710,8 @@ describe("runs", () => {
693
710
isUndefined : isUndefinedStub ,
694
711
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
695
712
setLocalConfigFile : setLocalConfigFileStub ,
713
+ setBrowsers : setBrowsersStub ,
714
+ setConfig : setConfigStub
696
715
} ,
697
716
'../helpers/capabilityHelper' : {
698
717
validate : capabilityValidatorStub ,
0 commit comments