@@ -5,6 +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 { setHeaded } = require ( "../../../../bin/helpers/utils" ) ;
8
9
9
10
const proxyquire = require ( "proxyquire" ) . noCallThru ( ) ;
10
11
@@ -98,6 +99,7 @@ describe("runs", () => {
98
99
capabilityValidatorStub = sandbox . stub ( ) ;
99
100
setLocalStub = sandbox . stub ( ) ;
100
101
setLocalIdentifierStub = sandbox . stub ( ) ;
102
+ setHeadedStub = sandbox . stub ( ) ;
101
103
deleteResultsStub = sandbox . stub ( ) ;
102
104
setDefaultsStub = sandbox . stub ( ) ;
103
105
} ) ;
@@ -127,6 +129,7 @@ describe("runs", () => {
127
129
getConfigPath : getConfigPathStub ,
128
130
setLocal : setLocalStub ,
129
131
setLocalIdentifier : setLocalIdentifierStub ,
132
+ setHeaded : setHeadedStub ,
130
133
deleteResults : deleteResultsStub ,
131
134
setDefaults : setDefaultsStub ,
132
135
isJSONInvalid : isJSONInvalidStub
@@ -152,6 +155,7 @@ describe("runs", () => {
152
155
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
153
156
sinon . assert . calledOnce ( setLocalStub ) ;
154
157
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
158
+ sinon . assert . calledOnce ( setHeadedStub ) ;
155
159
sinon . assert . calledOnce ( deleteResultsStub ) ;
156
160
sinon . assert . calledOnce ( setDefaultsStub ) ;
157
161
sinon . assert . calledOnceWithExactly (
@@ -189,6 +193,7 @@ describe("runs", () => {
189
193
deleteZipStub = sandbox . stub ( ) ;
190
194
setLocalStub = sandbox . stub ( ) ;
191
195
setLocalIdentifierStub = sandbox . stub ( ) ;
196
+ setHeadedStub = sandbox . stub ( ) ;
192
197
deleteResultsStub = sandbox . stub ( ) ;
193
198
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
194
199
setDefaultsStub = sandbox . stub ( ) ;
@@ -219,6 +224,7 @@ describe("runs", () => {
219
224
getConfigPath : getConfigPathStub ,
220
225
setLocal : setLocalStub ,
221
226
setLocalIdentifier : setLocalIdentifierStub ,
227
+ setHeaded : setHeadedStub ,
222
228
deleteResults : deleteResultsStub ,
223
229
setDefaults : setDefaultsStub ,
224
230
getNumberOfSpecFiles : getNumberOfSpecFilesStub
@@ -249,6 +255,7 @@ describe("runs", () => {
249
255
sinon . assert . calledOnce ( setParallelsStub ) ;
250
256
sinon . assert . calledOnce ( setLocalStub ) ;
251
257
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
258
+ sinon . assert . calledOnce ( setHeadedStub ) ;
252
259
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
253
260
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
254
261
sinon . assert . calledOnce ( archiverStub ) ;
@@ -292,6 +299,7 @@ describe("runs", () => {
292
299
deleteZipStub = sandbox . stub ( ) ;
293
300
setLocalStub = sandbox . stub ( ) ;
294
301
setLocalIdentifierStub = sandbox . stub ( ) ;
302
+ setHeadedStub = sandbox . stub ( ) ;
295
303
deleteResultsStub = sandbox . stub ( ) ;
296
304
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
297
305
setDefaultsStub = sandbox . stub ( ) ;
@@ -322,6 +330,7 @@ describe("runs", () => {
322
330
getConfigPath : getConfigPathStub ,
323
331
setLocal : setLocalStub ,
324
332
setLocalIdentifier : setLocalIdentifierStub ,
333
+ setHeaded : setHeadedStub ,
325
334
deleteResults : deleteResultsStub ,
326
335
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
327
336
setDefaults : setDefaultsStub
@@ -356,6 +365,7 @@ describe("runs", () => {
356
365
sinon . assert . calledOnce ( setParallelsStub ) ;
357
366
sinon . assert . calledOnce ( setLocalStub ) ;
358
367
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
368
+ sinon . assert . calledOnce ( setHeadedStub ) ;
359
369
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
360
370
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
361
371
sinon . assert . calledOnce ( archiverStub ) ;
@@ -403,6 +413,7 @@ describe("runs", () => {
403
413
deleteZipStub = sandbox . stub ( ) ;
404
414
setLocalStub = sandbox . stub ( ) ;
405
415
setLocalIdentifierStub = sandbox . stub ( ) ;
416
+ setHeadedStub = sandbox . stub ( ) ;
406
417
deleteResultsStub = sandbox . stub ( ) ;
407
418
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
408
419
setDefaultsStub = sandbox . stub ( ) ;
@@ -433,6 +444,7 @@ describe("runs", () => {
433
444
getConfigPath : getConfigPathStub ,
434
445
setLocal : setLocalStub ,
435
446
setLocalIdentifier : setLocalIdentifierStub ,
447
+ setHeaded : setHeadedStub ,
436
448
deleteResults : deleteResultsStub ,
437
449
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
438
450
setDefaults : setDefaultsStub
@@ -475,6 +487,7 @@ describe("runs", () => {
475
487
sinon . assert . calledOnce ( setParallelsStub ) ;
476
488
sinon . assert . calledOnce ( setLocalStub ) ;
477
489
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
490
+ sinon . assert . calledOnce ( setHeadedStub ) ;
478
491
sinon . assert . calledOnce ( archiverStub ) ;
479
492
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
480
493
sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -527,6 +540,7 @@ describe("runs", () => {
527
540
isUndefinedStub = sandbox . stub ( ) ;
528
541
setLocalStub = sandbox . stub ( ) ;
529
542
setLocalIdentifierStub = sandbox . stub ( ) ;
543
+ setHeadedStub = sandbox . stub ( ) ;
530
544
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
531
545
} ) ;
532
546
@@ -556,6 +570,7 @@ describe("runs", () => {
556
570
getConfigPath : getConfigPathStub ,
557
571
setLocal : setLocalStub ,
558
572
setLocalIdentifier : setLocalIdentifierStub ,
573
+ setHeaded : setHeadedStub ,
559
574
exportResults : exportResultsStub ,
560
575
deleteResults : deleteResultsStub ,
561
576
setDefaults : setDefaultsStub ,
@@ -603,6 +618,7 @@ describe("runs", () => {
603
618
sinon . assert . calledOnce ( setParallelsStub ) ;
604
619
sinon . assert . calledOnce ( setLocalStub ) ;
605
620
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
621
+ sinon . assert . calledOnce ( setHeadedStub ) ;
606
622
sinon . assert . calledOnce ( archiverStub ) ;
607
623
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
608
624
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments