@@ -647,6 +647,7 @@ describe("runs", () => {
647
647
setUsernameStub = sandbox . stub ( ) ;
648
648
setAccessKeyStub = sandbox . stub ( ) ;
649
649
setBuildNameStub = sandbox . stub ( ) ;
650
+ generateUniqueHashStub = sandbox . stub ( ) . returns ( 'random_hash' ) ;
650
651
setCypressConfigFilenameStub = sandbox . stub ( ) ;
651
652
setUserSpecsStub = sandbox . stub ( ) ;
652
653
setTestEnvsStub = sandbox . stub ( ) ;
@@ -678,6 +679,7 @@ describe("runs", () => {
678
679
setLocalConfigFileStub = sandbox . stub ( ) ;
679
680
getTimeComponentsStub = sandbox . stub ( ) . returns ( { } ) ;
680
681
initTimeComponentsStub = sandbox . stub ( ) ;
682
+ instrumentEventTimeStub = sandbox . stub ( ) ;
681
683
markBlockStartStub = sandbox . stub ( ) ;
682
684
markBlockEndStub = sandbox . stub ( ) ;
683
685
setConfigStub = sandbox . stub ( ) ;
@@ -696,7 +698,7 @@ describe("runs", () => {
696
698
let errorCode = null ;
697
699
let message = `Success! ${ Constants . userMessages . BUILD_CREATED } with build id: random_build_id` ;
698
700
let dashboardLink = `${ Constants . userMessages . VISIT_DASHBOARD } ${ dashboardUrl } ` ;
699
- let data = { time_components : { } , build_id : 'random_build_id' }
701
+ let data = { time_components : { } , unique_id : 'random_hash' , build_id : 'random_build_id' }
700
702
701
703
const runs = proxyquire ( '../../../../bin/commands/runs' , {
702
704
'../helpers/utils' : {
@@ -720,6 +722,7 @@ describe("runs", () => {
720
722
setHeaded : setHeadedStub ,
721
723
setNoWrap : setNoWrapStub ,
722
724
setOtherConfigs : setOtherConfigsStub ,
725
+ generateUniqueHash : generateUniqueHashStub ,
723
726
exportResults : exportResultsStub ,
724
727
deleteResults : deleteResultsStub ,
725
728
setDefaults : setDefaultsStub ,
@@ -754,6 +757,7 @@ describe("runs", () => {
754
757
} ,
755
758
'../helpers/timeComponents' : {
756
759
initTimeComponents : initTimeComponentsStub ,
760
+ instrumentEventTime : instrumentEventTimeStub ,
757
761
getTimeComponents : getTimeComponentsStub ,
758
762
markBlockStart : markBlockStartStub ,
759
763
markBlockEnd : markBlockEndStub ,
@@ -792,6 +796,7 @@ describe("runs", () => {
792
796
sinon . assert . calledOnce ( setHeadedStub ) ;
793
797
sinon . assert . calledOnce ( setNoWrapStub ) ;
794
798
sinon . assert . calledOnce ( setOtherConfigsStub ) ;
799
+ sinon . assert . calledOnce ( generateUniqueHashStub ) ;
795
800
sinon . assert . calledOnce ( archiverStub ) ;
796
801
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
797
802
sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments