@@ -12,9 +12,9 @@ jest.mock('@sentry/utils', () => {
1212 } ;
1313} ) ;
1414
15- const SAMPLE_RATES = {
15+ const SAMPLE_OPTIONS = {
1616 sessionSampleRate : 1.0 ,
17- errorSampleRate : 0 ,
17+ allowBuffering : false ,
1818} ;
1919
2020function createMockSession ( when : number = Date . now ( ) ) {
@@ -48,7 +48,7 @@ describe('Unit | session | getSession', () => {
4848 maxSessionLife : MAX_SESSION_LIFE ,
4949 } ,
5050 stickySession : false ,
51- ...SAMPLE_RATES ,
51+ ...SAMPLE_OPTIONS ,
5252 } ) ;
5353
5454 expect ( FetchSession . fetchSession ) . not . toHaveBeenCalled ( ) ;
@@ -76,7 +76,7 @@ describe('Unit | session | getSession', () => {
7676 maxSessionLife : MAX_SESSION_LIFE ,
7777 } ,
7878 stickySession : false ,
79- ...SAMPLE_RATES ,
79+ ...SAMPLE_OPTIONS ,
8080 } ) ;
8181
8282 expect ( FetchSession . fetchSession ) . not . toHaveBeenCalled ( ) ;
@@ -92,7 +92,7 @@ describe('Unit | session | getSession', () => {
9292 maxSessionLife : MAX_SESSION_LIFE ,
9393 } ,
9494 stickySession : false ,
95- ...SAMPLE_RATES ,
95+ ...SAMPLE_OPTIONS ,
9696 currentSession : makeSession ( {
9797 id : 'old_session_id' ,
9898 lastActivity : Date . now ( ) - 1001 ,
@@ -119,7 +119,7 @@ describe('Unit | session | getSession', () => {
119119 } ,
120120 stickySession : true ,
121121 sessionSampleRate : 1.0 ,
122- errorSampleRate : 0.0 ,
122+ allowBuffering : false ,
123123 } ) ;
124124
125125 expect ( FetchSession . fetchSession ) . toHaveBeenCalled ( ) ;
@@ -156,7 +156,7 @@ describe('Unit | session | getSession', () => {
156156 } ,
157157 stickySession : true ,
158158 sessionSampleRate : 1.0 ,
159- errorSampleRate : 0.0 ,
159+ allowBuffering : false ,
160160 } ) ;
161161
162162 expect ( FetchSession . fetchSession ) . toHaveBeenCalled ( ) ;
@@ -182,7 +182,7 @@ describe('Unit | session | getSession', () => {
182182 maxSessionLife : MAX_SESSION_LIFE ,
183183 } ,
184184 stickySession : true ,
185- ...SAMPLE_RATES ,
185+ ...SAMPLE_OPTIONS ,
186186 } ) ;
187187
188188 expect ( FetchSession . fetchSession ) . toHaveBeenCalled ( ) ;
@@ -201,7 +201,7 @@ describe('Unit | session | getSession', () => {
201201 maxSessionLife : MAX_SESSION_LIFE ,
202202 } ,
203203 stickySession : false ,
204- ...SAMPLE_RATES ,
204+ ...SAMPLE_OPTIONS ,
205205 currentSession : makeSession ( {
206206 id : 'test_session_uuid_2' ,
207207 lastActivity : + new Date ( ) - 500 ,
0 commit comments