Skip to content

Commit ecb5a41

Browse files
committed
fix test assertions
1 parent bcc97c5 commit ecb5a41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/router-core/tests/optional-path-params.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('Optional Path Parameters', () => {
162162
name: 'optional param with prefix - omitted',
163163
path: '/posts/prefix{-$category}',
164164
params: {},
165-
result: '/posts',
165+
result: '/posts/prefix',
166166
},
167167
{
168168
name: 'optional param with suffix - provided',
@@ -174,7 +174,7 @@ describe('Optional Path Parameters', () => {
174174
name: 'optional param with suffix - omitted',
175175
path: '/posts/{-$category}.html',
176176
params: {},
177-
result: '/posts',
177+
result: '/posts/.html',
178178
},
179179
{
180180
name: 'optional param with prefix and suffix - provided',
@@ -186,7 +186,7 @@ describe('Optional Path Parameters', () => {
186186
name: 'optional param with prefix and suffix - omitted',
187187
path: '/posts/prefix{-$category}suffix',
188188
params: {},
189-
result: '/posts',
189+
result: '/posts/prefixsuffix',
190190
},
191191
{
192192
name: 'multiple optional params - all provided',

0 commit comments

Comments
 (0)