@@ -288,11 +288,6 @@ describe('React Router cross usage of wrappers', () => {
288
288
289
289
// It's called 1 time from the wrapped `MemoryRouter`
290
290
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenCalledTimes ( 1 ) ;
291
-
292
- // It's called 3 times from the 3 `useRoutes` components
293
- expect ( mockNavigationSpan . updateName ) . toHaveBeenCalledTimes ( 3 ) ;
294
- expect ( mockNavigationSpan . updateName ) . toHaveBeenLastCalledWith ( '/second-level/:id/third-level/:id' ) ;
295
-
296
291
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenLastCalledWith ( expect . any ( BrowserClient ) , {
297
292
name : '/second-level/:id/third-level/:id' ,
298
293
attributes : {
@@ -459,11 +454,6 @@ describe('React Router cross usage of wrappers', () => {
459
454
460
455
// It's called 1 time from the wrapped `MemoryRouter`
461
456
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenCalledTimes ( 1 ) ;
462
-
463
- // It's called 3 times from the 3 `useRoutes` components
464
- expect ( mockNavigationSpan . updateName ) . toHaveBeenCalledTimes ( 3 ) ;
465
- expect ( mockNavigationSpan . updateName ) . toHaveBeenLastCalledWith ( '/second-level/:id/third-level/:id' ) ;
466
- expect ( mockNavigationSpan . setAttribute ) . toHaveBeenLastCalledWith ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , 'route' ) ;
467
457
} ) ;
468
458
} ) ;
469
459
@@ -611,10 +601,6 @@ describe('React Router cross usage of wrappers', () => {
611
601
// It's called 1 time from the wrapped `createMemoryRouter`
612
602
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenCalledTimes ( 1 ) ;
613
603
614
- // It's called 3 times from the 3 `SentryRoutes` components
615
- expect ( mockNavigationSpan . updateName ) . toHaveBeenCalledTimes ( 3 ) ;
616
- expect ( mockNavigationSpan . updateName ) . toHaveBeenLastCalledWith ( '/second-level/:id/third-level/:id' ) ;
617
-
618
604
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenLastCalledWith ( expect . any ( BrowserClient ) , {
619
605
name : '/second-level/:id/third-level/:id' ,
620
606
attributes : {
@@ -790,11 +776,6 @@ describe('React Router cross usage of wrappers', () => {
790
776
791
777
// It's called 1 time from the wrapped `MemoryRouter`
792
778
expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenCalledTimes ( 1 ) ;
793
-
794
- // It's called 3 times from the 2 `useRoutes` components and 1 <SentryRoutes> component
795
- expect ( mockNavigationSpan . updateName ) . toHaveBeenCalledTimes ( 3 ) ;
796
-
797
- expect ( mockNavigationSpan . updateName ) . toHaveBeenLastCalledWith ( '/second-level/:id/third-level/:id' ) ;
798
779
expect ( mockNavigationSpan . setAttribute ) . toHaveBeenLastCalledWith ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , 'route' ) ;
799
780
} ) ;
800
781
} ) ;
0 commit comments