@@ -133,7 +133,7 @@ describe('hubextensions', () => {
133
133
transaction . finish ( ) ;
134
134
135
135
await Sentry . flush ( 1000 ) ;
136
- expect ( logSpy . mock ?. [ logSpy . mock . calls . length - 1 ] ?. [ 0 ] ) . toBe ( '[Profiling] Discarding profile because it contains less than 2 samples' ) ;
136
+ expect ( logSpy . mock ?. [ logSpy . mock . calls . length - 1 ] ?. [ 0 ] ) . toBe ( '[Profiling] Discarding profile because it contains less than 2 samples' ) ;
137
137
138
138
expect ( ( transport . send as any ) . mock . calls [ 0 ] [ 0 ] [ 1 ] [ 0 ] [ 0 ] . type ) . toBe ( 'transaction' ) ;
139
139
// eslint-disable-next-line @typescript-eslint/unbound-method
@@ -199,7 +199,7 @@ describe('hubextensions', () => {
199
199
await Sentry . flush ( 1000 ) ;
200
200
201
201
expect ( startProfilingSpy ) . toHaveBeenCalledTimes ( 1 ) ;
202
- expect ( ( stopProfilingSpy . mock [ stopProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
202
+ expect ( ( stopProfilingSpy . mock [ stopProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
203
203
} ) ;
204
204
205
205
it ( 'sends profile in the same envelope as transaction' , async ( ) => {
@@ -310,7 +310,7 @@ describe('hubextensions', () => {
310
310
await Sentry . flush ( 1000 ) ;
311
311
312
312
expect ( startProfilingSpy ) . toHaveBeenCalledTimes ( 1 ) ;
313
- expect ( ( stopProfilingSpy . mock [ startProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
313
+ expect ( ( stopProfilingSpy . mock [ startProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
314
314
} ) ;
315
315
316
316
it ( 'sends profile in separate envelope' , async ( ) => {
@@ -353,7 +353,7 @@ describe('hubextensions', () => {
353
353
jest . advanceTimersByTime ( 30001 ) ;
354
354
355
355
expect ( stopProfilingSpy ) . toHaveBeenCalledTimes ( 1 ) ;
356
- expect ( ( stopProfilingSpy . mock . calls [ startProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
356
+ expect ( ( stopProfilingSpy . mock . calls [ startProfilingSpy . mock . calls . length - 1 ] ?. [ 0 ] as string ) . length ) . toBe ( 32 ) ;
357
357
358
358
transaction . finish ( ) ;
359
359
expect ( stopProfilingSpy ) . toHaveBeenCalledTimes ( 1 ) ;
0 commit comments