@@ -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
@@ -97,6 +98,7 @@ describe("runs", () => {
9798 capabilityValidatorStub = sandbox . stub ( ) ;
9899 setLocalStub = sandbox . stub ( ) ;
99100 setLocalIdentifierStub = sandbox . stub ( ) ;
101+ setHeadedStub = sandbox . stub ( ) ;
100102 deleteResultsStub = sandbox . stub ( ) ;
101103 setDefaultsStub = sandbox . stub ( ) ;
102104 } ) ;
@@ -126,6 +128,7 @@ describe("runs", () => {
126128 getConfigPath : getConfigPathStub ,
127129 setLocal : setLocalStub ,
128130 setLocalIdentifier : setLocalIdentifierStub ,
131+ setHeaded : setHeadedStub ,
129132 deleteResults : deleteResultsStub ,
130133 setDefaults : setDefaultsStub
131134 } ,
@@ -150,6 +153,7 @@ describe("runs", () => {
150153 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
151154 sinon . assert . calledOnce ( setLocalStub ) ;
152155 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
156+ sinon . assert . calledOnce ( setHeadedStub ) ;
153157 sinon . assert . calledOnce ( deleteResultsStub ) ;
154158 sinon . assert . calledOnce ( setDefaultsStub ) ;
155159 sinon . assert . calledOnceWithExactly (
@@ -187,6 +191,7 @@ describe("runs", () => {
187191 deleteZipStub = sandbox . stub ( ) ;
188192 setLocalStub = sandbox . stub ( ) ;
189193 setLocalIdentifierStub = sandbox . stub ( ) ;
194+ setHeadedStub = sandbox . stub ( ) ;
190195 deleteResultsStub = sandbox . stub ( ) ;
191196 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
192197 setDefaultsStub = sandbox . stub ( ) ;
@@ -217,6 +222,7 @@ describe("runs", () => {
217222 getConfigPath : getConfigPathStub ,
218223 setLocal : setLocalStub ,
219224 setLocalIdentifier : setLocalIdentifierStub ,
225+ setHeaded : setHeadedStub ,
220226 deleteResults : deleteResultsStub ,
221227 setDefaults : setDefaultsStub ,
222228 getNumberOfSpecFiles : getNumberOfSpecFilesStub
@@ -247,6 +253,7 @@ describe("runs", () => {
247253 sinon . assert . calledOnce ( setParallelsStub ) ;
248254 sinon . assert . calledOnce ( setLocalStub ) ;
249255 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
256+ sinon . assert . calledOnce ( setHeadedStub ) ;
250257 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
251258 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
252259 sinon . assert . calledOnce ( archiverStub ) ;
@@ -290,6 +297,7 @@ describe("runs", () => {
290297 deleteZipStub = sandbox . stub ( ) ;
291298 setLocalStub = sandbox . stub ( ) ;
292299 setLocalIdentifierStub = sandbox . stub ( ) ;
300+ setHeadedStub = sandbox . stub ( ) ;
293301 deleteResultsStub = sandbox . stub ( ) ;
294302 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
295303 setDefaultsStub = sandbox . stub ( ) ;
@@ -320,6 +328,7 @@ describe("runs", () => {
320328 getConfigPath : getConfigPathStub ,
321329 setLocal : setLocalStub ,
322330 setLocalIdentifier : setLocalIdentifierStub ,
331+ setHeaded : setHeadedStub ,
323332 deleteResults : deleteResultsStub ,
324333 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
325334 setDefaults : setDefaultsStub
@@ -354,6 +363,7 @@ describe("runs", () => {
354363 sinon . assert . calledOnce ( setParallelsStub ) ;
355364 sinon . assert . calledOnce ( setLocalStub ) ;
356365 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
366+ sinon . assert . calledOnce ( setHeadedStub ) ;
357367 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
358368 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
359369 sinon . assert . calledOnce ( archiverStub ) ;
@@ -401,6 +411,7 @@ describe("runs", () => {
401411 deleteZipStub = sandbox . stub ( ) ;
402412 setLocalStub = sandbox . stub ( ) ;
403413 setLocalIdentifierStub = sandbox . stub ( ) ;
414+ setHeadedStub = sandbox . stub ( ) ;
404415 deleteResultsStub = sandbox . stub ( ) ;
405416 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
406417 setDefaultsStub = sandbox . stub ( ) ;
@@ -431,6 +442,7 @@ describe("runs", () => {
431442 getConfigPath : getConfigPathStub ,
432443 setLocal : setLocalStub ,
433444 setLocalIdentifier : setLocalIdentifierStub ,
445+ setHeaded : setHeadedStub ,
434446 deleteResults : deleteResultsStub ,
435447 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
436448 setDefaults : setDefaultsStub
@@ -473,6 +485,7 @@ describe("runs", () => {
473485 sinon . assert . calledOnce ( setParallelsStub ) ;
474486 sinon . assert . calledOnce ( setLocalStub ) ;
475487 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
488+ sinon . assert . calledOnce ( setHeadedStub ) ;
476489 sinon . assert . calledOnce ( archiverStub ) ;
477490 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
478491 sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -525,6 +538,7 @@ describe("runs", () => {
525538 isUndefinedStub = sandbox . stub ( ) ;
526539 setLocalStub = sandbox . stub ( ) ;
527540 setLocalIdentifierStub = sandbox . stub ( ) ;
541+ setHeadedStub = sandbox . stub ( ) ;
528542 getNumberOfSpecFilesStub = sandbox . stub ( ) . returns ( [ ] ) ;
529543 } ) ;
530544
@@ -554,6 +568,7 @@ describe("runs", () => {
554568 getConfigPath : getConfigPathStub ,
555569 setLocal : setLocalStub ,
556570 setLocalIdentifier : setLocalIdentifierStub ,
571+ setHeaded : setHeadedStub ,
557572 exportResults : exportResultsStub ,
558573 deleteResults : deleteResultsStub ,
559574 setDefaults : setDefaultsStub ,
@@ -601,6 +616,7 @@ describe("runs", () => {
601616 sinon . assert . calledOnce ( setParallelsStub ) ;
602617 sinon . assert . calledOnce ( setLocalStub ) ;
603618 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
619+ sinon . assert . calledOnce ( setHeadedStub ) ;
604620 sinon . assert . calledOnce ( archiverStub ) ;
605621 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
606622 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments