@@ -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
@@ -97,6 +98,7 @@ describe("runs", () => {
97
98
capabilityValidatorStub = sandbox . stub ( ) ;
98
99
setLocalStub = sandbox . stub ( ) ;
99
100
setLocalIdentifierStub = sandbox . stub ( ) ;
101
+ setHeadedStub = sandbox . stub ( ) ;
100
102
deleteResultsStub = sandbox . stub ( ) ;
101
103
setDefaultsStub = sandbox . stub ( ) ;
102
104
} ) ;
@@ -126,6 +128,7 @@ describe("runs", () => {
126
128
getConfigPath : getConfigPathStub ,
127
129
setLocal : setLocalStub ,
128
130
setLocalIdentifier : setLocalIdentifierStub ,
131
+ setHeaded : setHeadedStub ,
129
132
deleteResults : deleteResultsStub ,
130
133
setDefaults : setDefaultsStub
131
134
} ,
@@ -150,6 +153,7 @@ describe("runs", () => {
150
153
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
151
154
sinon . assert . calledOnce ( setLocalStub ) ;
152
155
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
156
+ sinon . assert . calledOnce ( setHeadedStub ) ;
153
157
sinon . assert . calledOnce ( deleteResultsStub ) ;
154
158
sinon . assert . calledOnce ( setDefaultsStub ) ;
155
159
sinon . assert . calledOnceWithExactly (
@@ -187,6 +191,7 @@ describe("runs", () => {
187
191
deleteZipStub = sandbox . stub ( ) ;
188
192
setLocalStub = sandbox . stub ( ) ;
189
193
setLocalIdentifierStub = sandbox . stub ( ) ;
194
+ setHeadedStub = sandbox . stub ( ) ;
190
195
deleteResultsStub = sandbox . stub ( ) ;
191
196
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
192
197
setDefaultsStub = sandbox . stub ( ) ;
@@ -217,6 +222,7 @@ describe("runs", () => {
217
222
getConfigPath : getConfigPathStub ,
218
223
setLocal : setLocalStub ,
219
224
setLocalIdentifier : setLocalIdentifierStub ,
225
+ setHeaded : setHeadedStub ,
220
226
deleteResults : deleteResultsStub ,
221
227
setDefaults : setDefaultsStub ,
222
228
getNumberOfSpecFiles : getNumberOfSpecFilesStub
@@ -247,6 +253,7 @@ describe("runs", () => {
247
253
sinon . assert . calledOnce ( setParallelsStub ) ;
248
254
sinon . assert . calledOnce ( setLocalStub ) ;
249
255
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
256
+ sinon . assert . calledOnce ( setHeadedStub ) ;
250
257
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
251
258
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
252
259
sinon . assert . calledOnce ( archiverStub ) ;
@@ -290,6 +297,7 @@ describe("runs", () => {
290
297
deleteZipStub = sandbox . stub ( ) ;
291
298
setLocalStub = sandbox . stub ( ) ;
292
299
setLocalIdentifierStub = sandbox . stub ( ) ;
300
+ setHeadedStub = sandbox . stub ( ) ;
293
301
deleteResultsStub = sandbox . stub ( ) ;
294
302
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
295
303
setDefaultsStub = sandbox . stub ( ) ;
@@ -320,6 +328,7 @@ describe("runs", () => {
320
328
getConfigPath : getConfigPathStub ,
321
329
setLocal : setLocalStub ,
322
330
setLocalIdentifier : setLocalIdentifierStub ,
331
+ setHeaded : setHeadedStub ,
323
332
deleteResults : deleteResultsStub ,
324
333
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
325
334
setDefaults : setDefaultsStub
@@ -354,6 +363,7 @@ describe("runs", () => {
354
363
sinon . assert . calledOnce ( setParallelsStub ) ;
355
364
sinon . assert . calledOnce ( setLocalStub ) ;
356
365
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
366
+ sinon . assert . calledOnce ( setHeadedStub ) ;
357
367
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
358
368
sinon . assert . calledOnce ( capabilityValidatorStub ) ;
359
369
sinon . assert . calledOnce ( archiverStub ) ;
@@ -401,6 +411,7 @@ describe("runs", () => {
401
411
deleteZipStub = sandbox . stub ( ) ;
402
412
setLocalStub = sandbox . stub ( ) ;
403
413
setLocalIdentifierStub = sandbox . stub ( ) ;
414
+ setHeadedStub = sandbox . stub ( ) ;
404
415
deleteResultsStub = sandbox . stub ( ) ;
405
416
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
406
417
setDefaultsStub = sandbox . stub ( ) ;
@@ -431,6 +442,7 @@ describe("runs", () => {
431
442
getConfigPath : getConfigPathStub ,
432
443
setLocal : setLocalStub ,
433
444
setLocalIdentifier : setLocalIdentifierStub ,
445
+ setHeaded : setHeadedStub ,
434
446
deleteResults : deleteResultsStub ,
435
447
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
436
448
setDefaults : setDefaultsStub
@@ -473,6 +485,7 @@ describe("runs", () => {
473
485
sinon . assert . calledOnce ( setParallelsStub ) ;
474
486
sinon . assert . calledOnce ( setLocalStub ) ;
475
487
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
488
+ sinon . assert . calledOnce ( setHeadedStub ) ;
476
489
sinon . assert . calledOnce ( archiverStub ) ;
477
490
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
478
491
sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -525,6 +538,7 @@ describe("runs", () => {
525
538
isUndefinedStub = sandbox . stub ( ) ;
526
539
setLocalStub = sandbox . stub ( ) ;
527
540
setLocalIdentifierStub = sandbox . stub ( ) ;
541
+ setHeadedStub = sandbox . stub ( ) ;
528
542
getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
529
543
} ) ;
530
544
@@ -554,6 +568,7 @@ describe("runs", () => {
554
568
getConfigPath : getConfigPathStub ,
555
569
setLocal : setLocalStub ,
556
570
setLocalIdentifier : setLocalIdentifierStub ,
571
+ setHeaded : setHeadedStub ,
557
572
exportResults : exportResultsStub ,
558
573
deleteResults : deleteResultsStub ,
559
574
setDefaults : setDefaultsStub ,
@@ -601,6 +616,7 @@ describe("runs", () => {
601
616
sinon . assert . calledOnce ( setParallelsStub ) ;
602
617
sinon . assert . calledOnce ( setLocalStub ) ;
603
618
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
619
+ sinon . assert . calledOnce ( setHeadedStub ) ;
604
620
sinon . assert . calledOnce ( archiverStub ) ;
605
621
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
606
622
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments