@@ -49,7 +49,7 @@ describe('BaseTransport', () => {
49
49
visibilityState = 'hidden' ;
50
50
document . dispatchEvent ( new Event ( 'visibilitychange' ) ) ;
51
51
52
- const outcomes = [ { reason : 'before_send' , category : 'error' , quantity : 1 } ] ;
52
+ const outcomes = [ { reason : Outcome . BeforeSend , category : 'error' , quantity : 1 } ] ;
53
53
54
54
expect ( sendBeaconSpy ) . toHaveBeenCalledWith (
55
55
envelopeEndpoint ,
@@ -75,16 +75,16 @@ describe('BaseTransport', () => {
75
75
transport . recordLostEvent ( Outcome . SampleRate , 'transaction' ) ;
76
76
transport . recordLostEvent ( Outcome . NetworkError , 'session' ) ;
77
77
transport . recordLostEvent ( Outcome . NetworkError , 'session' ) ;
78
- transport . recordLostEvent ( Outcome . RateLimit , 'event' ) ;
78
+ transport . recordLostEvent ( Outcome . RateLimitBackoff , 'event' ) ;
79
79
80
80
visibilityState = 'hidden' ;
81
81
document . dispatchEvent ( new Event ( 'visibilitychange' ) ) ;
82
82
83
83
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 } ,
88
88
] ;
89
89
90
90
expect ( sendBeaconSpy ) . toHaveBeenCalledWith (
0 commit comments