@@ -231,13 +231,13 @@ describe('router-view.ts - RouterView Component', () => {
231231 let injectedDepth : number | undefined ;
232232
233233 // Use the same symbol key that RouterView uses internally
234- const RouterViewDepthKey = Symbol ( 'RouterViewDepth' ) ;
234+ const RouterViewDepth = Symbol ( 'RouterViewDepth' ) ;
235235
236236 // Create a custom RouterView component that can capture the injected depth
237237 const TestRouterView = defineComponent ( {
238238 name : 'TestRouterView' ,
239239 setup ( ) {
240- injectedDepth = inject ( RouterViewDepthKey , - 1 ) ;
240+ injectedDepth = inject ( RouterViewDepth , - 1 ) ;
241241 return ( ) => h ( RouterView ) ;
242242 }
243243 } ) ;
@@ -263,13 +263,13 @@ describe('router-view.ts - RouterView Component', () => {
263263 let parentDepth : number | undefined ;
264264 let childDepth : number | undefined ;
265265
266- const RouterViewDepthKey = Symbol ( 'RouterViewDepth' ) ;
266+ const RouterViewDepth = Symbol ( 'RouterViewDepth' ) ;
267267
268268 const ParentTestComponent = defineComponent ( {
269269 name : 'ParentTestComponent' ,
270270 setup ( ) {
271- parentDepth = inject ( RouterViewDepthKey , - 1 ) ;
272- provide ( RouterViewDepthKey , 0 ) ; // Simulate parent RouterView
271+ parentDepth = inject ( RouterViewDepth , - 1 ) ;
272+ provide ( RouterViewDepth , 0 ) ; // Simulate parent RouterView
273273 return ( ) =>
274274 h ( 'div' , [ h ( 'span' , 'Parent' ) , h ( ChildTestComponent ) ] ) ;
275275 }
@@ -278,7 +278,7 @@ describe('router-view.ts - RouterView Component', () => {
278278 const ChildTestComponent = defineComponent ( {
279279 name : 'ChildTestComponent' ,
280280 setup ( ) {
281- childDepth = inject ( RouterViewDepthKey , - 1 ) ;
281+ childDepth = inject ( RouterViewDepth , - 1 ) ;
282282 return ( ) => h ( 'div' , 'Child' ) ;
283283 }
284284 } ) ;
@@ -362,14 +362,14 @@ describe('router-view.ts - RouterView Component', () => {
362362
363363 describe ( 'Edge Cases and Error Handling' , ( ) => {
364364 it ( 'should render null when no route matches at current depth' , async ( ) => {
365- const RouterViewDepthKey = Symbol ( 'RouterViewDepth' ) ;
365+ const RouterViewDepth = Symbol ( 'RouterViewDepth' ) ;
366366
367367 const DeepRouterView = defineComponent ( {
368368 name : 'DeepRouterView' ,
369369 setup ( ) {
370370 // Inject depth 0 from parent RouterView and provide depth 1
371- const currentDepth = inject ( RouterViewDepthKey , 0 ) ;
372- provide ( RouterViewDepthKey , currentDepth + 1 ) ;
371+ const currentDepth = inject ( RouterViewDepth , 0 ) ;
372+ provide ( RouterViewDepth , currentDepth + 1 ) ;
373373 return ( ) => h ( RouterView ) ;
374374 }
375375 } ) ;
0 commit comments