@@ -288,11 +288,6 @@ describe('React Router cross usage of wrappers', () => {
288288
289289 // It's called 1 time from the wrapped `MemoryRouter`
290290 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-
296291 expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenLastCalledWith ( expect . any ( BrowserClient ) , {
297292 name : '/second-level/:id/third-level/:id' ,
298293 attributes : {
@@ -459,11 +454,6 @@ describe('React Router cross usage of wrappers', () => {
459454
460455 // It's called 1 time from the wrapped `MemoryRouter`
461456 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' ) ;
467457 } ) ;
468458 } ) ;
469459
@@ -611,10 +601,6 @@ describe('React Router cross usage of wrappers', () => {
611601 // It's called 1 time from the wrapped `createMemoryRouter`
612602 expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenCalledTimes ( 1 ) ;
613603
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-
618604 expect ( mockStartBrowserTracingNavigationSpan ) . toHaveBeenLastCalledWith ( expect . any ( BrowserClient ) , {
619605 name : '/second-level/:id/third-level/:id' ,
620606 attributes : {
@@ -790,11 +776,6 @@ describe('React Router cross usage of wrappers', () => {
790776
791777 // It's called 1 time from the wrapped `MemoryRouter`
792778 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' ) ;
798779 expect ( mockNavigationSpan . setAttribute ) . toHaveBeenLastCalledWith ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , 'route' ) ;
799780 } ) ;
800781 } ) ;
0 commit comments