@@ -1465,7 +1465,12 @@ test('should navigate to current route with changing path params when using "."
14651465 return (
14661466 < >
14671467 < h1 data-testid = "index-heading" > Index</ h1 >
1468- < button data-testid = 'posts-btn' onClick = { ( ) => navigate ( { to : '/posts' } ) } > Posts</ button >
1468+ < button
1469+ data-testid = "posts-btn"
1470+ onClick = { ( ) => navigate ( { to : '/posts' } ) }
1471+ >
1472+ Posts
1473+ </ button >
14691474 </ >
14701475 )
14711476 }
@@ -1493,7 +1498,7 @@ test('should navigate to current route with changing path params when using "."
14931498 const navigate = postsRoute . useNavigate ( )
14941499 return (
14951500 < >
1496- < h1 data-testid = ' posts-index-heading' > Posts</ h1 >
1501+ < h1 data-testid = " posts-index-heading" > Posts</ h1 >
14971502 < button
14981503 data-testid = "first-post-btn"
14991504 onClick = { ( ) =>
@@ -1531,7 +1536,9 @@ test('should navigate to current route with changing path params when using "."
15311536 const params = useParams ( { strict : false } )
15321537 return (
15331538 < >
1534- < span data-testid = { `post-${ params . postId } ` } > Params: { params . postId } </ span >
1539+ < span data-testid = { `post-${ params . postId } ` } >
1540+ Params: { params . postId }
1541+ </ span >
15351542 </ >
15361543 )
15371544 }
@@ -1545,11 +1552,7 @@ test('should navigate to current route with changing path params when using "."
15451552 const router = createRouter ( {
15461553 routeTree : rootRoute . addChildren ( [
15471554 indexRoute ,
1548- layoutRoute . addChildren ( [
1549- postsRoute . addChildren ( [
1550- postRoute ,
1551- ] ) ,
1552- ] ) ,
1555+ layoutRoute . addChildren ( [ postsRoute . addChildren ( [ postRoute ] ) ] ) ,
15531556 ] ) ,
15541557 } )
15551558
0 commit comments