@@ -49,7 +49,7 @@ describe('BaseTransport', () => {
4949 visibilityState = 'hidden' ;
5050 document . dispatchEvent ( new Event ( 'visibilitychange' ) ) ;
5151
52- const outcomes = [ { reason : 'before_send' , category : 'error' , quantity : 1 } ] ;
52+ const outcomes = [ { reason : Outcome . BeforeSend , category : 'error' , quantity : 1 } ] ;
5353
5454 expect ( sendBeaconSpy ) . toHaveBeenCalledWith (
5555 envelopeEndpoint ,
@@ -75,16 +75,16 @@ describe('BaseTransport', () => {
7575 transport . recordLostEvent ( Outcome . SampleRate , 'transaction' ) ;
7676 transport . recordLostEvent ( Outcome . NetworkError , 'session' ) ;
7777 transport . recordLostEvent ( Outcome . NetworkError , 'session' ) ;
78- transport . recordLostEvent ( Outcome . RateLimit , 'event' ) ;
78+ transport . recordLostEvent ( Outcome . RateLimitBackoff , 'event' ) ;
7979
8080 visibilityState = 'hidden' ;
8181 document . dispatchEvent ( new Event ( 'visibilitychange' ) ) ;
8282
8383 const outcomes = [
84- { reason : 'before_send' , category : 'error' , quantity : 2 } ,
85- { reason : 'sample_rate' , category : 'transaction' , quantity : 1 } ,
86- { reason : 'network_error' , category : 'session' , quantity : 2 } ,
87- { reason : 'rate_limit' , category : 'error' , quantity : 1 } ,
84+ { reason : Outcome . BeforeSend , category : 'error' , quantity : 2 } ,
85+ { reason : Outcome . SampleRate , category : 'transaction' , quantity : 1 } ,
86+ { reason : Outcome . NetworkError , category : 'session' , quantity : 2 } ,
87+ { reason : Outcome . RateLimitBackoff , category : 'error' , quantity : 1 } ,
8888 ] ;
8989
9090 expect ( sendBeaconSpy ) . toHaveBeenCalledWith (
0 commit comments