@@ -647,6 +647,7 @@ describe("runs", () => {
647647 setUsernameStub = sandbox . stub ( ) ;
648648 setAccessKeyStub = sandbox . stub ( ) ;
649649 setBuildNameStub = sandbox . stub ( ) ;
650+ generateUniqueHashStub = sandbox . stub ( ) . returns ( 'random_hash' ) ;
650651 setCypressConfigFilenameStub = sandbox . stub ( ) ;
651652 setUserSpecsStub = sandbox . stub ( ) ;
652653 setTestEnvsStub = sandbox . stub ( ) ;
@@ -678,6 +679,7 @@ describe("runs", () => {
678679 setLocalConfigFileStub = sandbox . stub ( ) ;
679680 getTimeComponentsStub = sandbox . stub ( ) . returns ( { } ) ;
680681 initTimeComponentsStub = sandbox . stub ( ) ;
682+ instrumentEventTimeStub = sandbox . stub ( ) ;
681683 markBlockStartStub = sandbox . stub ( ) ;
682684 markBlockEndStub = sandbox . stub ( ) ;
683685 setConfigStub = sandbox . stub ( ) ;
@@ -696,7 +698,7 @@ describe("runs", () => {
696698 let errorCode = null ;
697699 let message = `Success! ${ Constants . userMessages . BUILD_CREATED } with build id: random_build_id` ;
698700 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' }
700702
701703 const runs = proxyquire ( '../../../../bin/commands/runs' , {
702704 '../helpers/utils' : {
@@ -720,6 +722,7 @@ describe("runs", () => {
720722 setHeaded : setHeadedStub ,
721723 setNoWrap : setNoWrapStub ,
722724 setOtherConfigs : setOtherConfigsStub ,
725+ generateUniqueHash : generateUniqueHashStub ,
723726 exportResults : exportResultsStub ,
724727 deleteResults : deleteResultsStub ,
725728 setDefaults : setDefaultsStub ,
@@ -754,6 +757,7 @@ describe("runs", () => {
754757 } ,
755758 '../helpers/timeComponents' : {
756759 initTimeComponents : initTimeComponentsStub ,
760+ instrumentEventTime : instrumentEventTimeStub ,
757761 getTimeComponents : getTimeComponentsStub ,
758762 markBlockStart : markBlockStartStub ,
759763 markBlockEnd : markBlockEndStub ,
@@ -792,6 +796,7 @@ describe("runs", () => {
792796 sinon . assert . calledOnce ( setHeadedStub ) ;
793797 sinon . assert . calledOnce ( setNoWrapStub ) ;
794798 sinon . assert . calledOnce ( setOtherConfigsStub ) ;
799+ sinon . assert . calledOnce ( generateUniqueHashStub ) ;
795800 sinon . assert . calledOnce ( archiverStub ) ;
796801 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
797802 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments