@@ -5,6 +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 { setHeaded } = require ( "../../../../bin/helpers/utils" ) ;
89
910const proxyquire = require ( "proxyquire" ) . noCallThru ( ) ;
1011
@@ -98,6 +99,7 @@ describe("runs", () => {
9899 capabilityValidatorStub = sandbox . stub ( ) ;
99100 setLocalStub = sandbox . stub ( ) ;
100101 setLocalIdentifierStub = sandbox . stub ( ) ;
102+ setHeadedStub = sandbox . stub ( ) ;
101103 deleteResultsStub = sandbox . stub ( ) ;
102104 setDefaultsStub = sandbox . stub ( ) ;
103105 } ) ;
@@ -127,6 +129,7 @@ describe("runs", () => {
127129 getConfigPath : getConfigPathStub ,
128130 setLocal : setLocalStub ,
129131 setLocalIdentifier : setLocalIdentifierStub ,
132+ setHeaded : setHeadedStub ,
130133 deleteResults : deleteResultsStub ,
131134 setDefaults : setDefaultsStub ,
132135 isJSONInvalid : isJSONInvalidStub
@@ -152,6 +155,7 @@ describe("runs", () => {
152155 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
153156 sinon . assert . calledOnce ( setLocalStub ) ;
154157 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
158+ sinon . assert . calledOnce ( setHeadedStub ) ;
155159 sinon . assert . calledOnce ( deleteResultsStub ) ;
156160 sinon . assert . calledOnce ( setDefaultsStub ) ;
157161 sinon . assert . calledOnceWithExactly (
@@ -189,6 +193,7 @@ describe("runs", () => {
189193 deleteZipStub = sandbox . stub ( ) ;
190194 setLocalStub = sandbox . stub ( ) ;
191195 setLocalIdentifierStub = sandbox . stub ( ) ;
196+ setHeadedStub = sandbox . stub ( ) ;
192197 deleteResultsStub = sandbox . stub ( ) ;
193198 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
194199 setDefaultsStub = sandbox . stub ( ) ;
@@ -219,6 +224,7 @@ describe("runs", () => {
219224 getConfigPath : getConfigPathStub ,
220225 setLocal : setLocalStub ,
221226 setLocalIdentifier : setLocalIdentifierStub ,
227+ setHeaded : setHeadedStub ,
222228 deleteResults : deleteResultsStub ,
223229 setDefaults : setDefaultsStub ,
224230 getNumberOfSpecFiles : getNumberOfSpecFilesStub
@@ -249,6 +255,7 @@ describe("runs", () => {
249255 sinon . assert . calledOnce ( setParallelsStub ) ;
250256 sinon . assert . calledOnce ( setLocalStub ) ;
251257 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
258+ sinon . assert . calledOnce ( setHeadedStub ) ;
252259 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
253260 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
254261 sinon . assert . calledOnce ( archiverStub ) ;
@@ -292,6 +299,7 @@ describe("runs", () => {
292299 deleteZipStub = sandbox . stub ( ) ;
293300 setLocalStub = sandbox . stub ( ) ;
294301 setLocalIdentifierStub = sandbox . stub ( ) ;
302+ setHeadedStub = sandbox . stub ( ) ;
295303 deleteResultsStub = sandbox . stub ( ) ;
296304 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
297305 setDefaultsStub = sandbox . stub ( ) ;
@@ -322,6 +330,7 @@ describe("runs", () => {
322330 getConfigPath : getConfigPathStub ,
323331 setLocal : setLocalStub ,
324332 setLocalIdentifier : setLocalIdentifierStub ,
333+ setHeaded : setHeadedStub ,
325334 deleteResults : deleteResultsStub ,
326335 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
327336 setDefaults : setDefaultsStub
@@ -356,6 +365,7 @@ describe("runs", () => {
356365 sinon . assert . calledOnce ( setParallelsStub ) ;
357366 sinon . assert . calledOnce ( setLocalStub ) ;
358367 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
368+ sinon . assert . calledOnce ( setHeadedStub ) ;
359369 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
360370 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
361371 sinon . assert . calledOnce ( archiverStub ) ;
@@ -403,6 +413,7 @@ describe("runs", () => {
403413 deleteZipStub = sandbox . stub ( ) ;
404414 setLocalStub = sandbox . stub ( ) ;
405415 setLocalIdentifierStub = sandbox . stub ( ) ;
416+ setHeadedStub = sandbox . stub ( ) ;
406417 deleteResultsStub = sandbox . stub ( ) ;
407418 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
408419 setDefaultsStub = sandbox . stub ( ) ;
@@ -433,6 +444,7 @@ describe("runs", () => {
433444 getConfigPath : getConfigPathStub ,
434445 setLocal : setLocalStub ,
435446 setLocalIdentifier : setLocalIdentifierStub ,
447+ setHeaded : setHeadedStub ,
436448 deleteResults : deleteResultsStub ,
437449 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
438450 setDefaults : setDefaultsStub
@@ -475,6 +487,7 @@ describe("runs", () => {
475487 sinon . assert . calledOnce ( setParallelsStub ) ;
476488 sinon . assert . calledOnce ( setLocalStub ) ;
477489 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
490+ sinon . assert . calledOnce ( setHeadedStub ) ;
478491 sinon . assert . calledOnce ( archiverStub ) ;
479492 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
480493 sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -527,6 +540,7 @@ describe("runs", () => {
527540 isUndefinedStub = sandbox . stub ( ) ;
528541 setLocalStub = sandbox . stub ( ) ;
529542 setLocalIdentifierStub = sandbox . stub ( ) ;
543+ setHeadedStub = sandbox . stub ( ) ;
530544 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
531545 } ) ;
532546
@@ -556,6 +570,7 @@ describe("runs", () => {
556570 getConfigPath : getConfigPathStub ,
557571 setLocal : setLocalStub ,
558572 setLocalIdentifier : setLocalIdentifierStub ,
573+ setHeaded : setHeadedStub ,
559574 exportResults : exportResultsStub ,
560575 deleteResults : deleteResultsStub ,
561576 setDefaults : setDefaultsStub ,
@@ -603,6 +618,7 @@ describe("runs", () => {
603618 sinon . assert . calledOnce ( setParallelsStub ) ;
604619 sinon . assert . calledOnce ( setLocalStub ) ;
605620 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
621+ sinon . assert . calledOnce ( setHeadedStub ) ;
606622 sinon . assert . calledOnce ( archiverStub ) ;
607623 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
608624 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments