Skip to content

Commit 75576d6

Browse files
authored
test: Fix duplicated route match test case (#119)
1 parent 589e11f commit 75576d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/node/router-match.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ test('Optional param route', () => {
6060
});
6161

6262
test('Optional rest param route "/:x*"', () => {
63-
const matchedResult = execPath('/user', '/user/:id*');
64-
assert.equal(matchedResult, { path: '/user', params: { id: undefined }, id: undefined, query: {} });
63+
const matchedResult = execPath('/user/foo', '/user/:id*');
64+
assert.equal(matchedResult, { path: '/user/foo', params: { id: 'foo' }, id: 'foo', query: {} });
6565

6666
const matchedResultWithSlash = execPath('/user/foo/bar', '/user/:id*');
6767
assert.equal(matchedResultWithSlash, {

0 commit comments

Comments
 (0)