Skip to content

Commit 5cf8265

Browse files
committed
fix: update path-parser version
1 parent a519901 commit 5cf8265

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"yargs": "~4.8.1"
5555
},
5656
"dependencies": {
57-
"path-parser": "2.0.0",
57+
"path-parser": "2.0.1",
5858
"search-params": "~1.3.0"
5959
}
6060
}

test/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ describe('RouteNode', function () {
324324
withoutMeta(rootNode.matchPath('/users/list/')).should.eql({name: 'users.list', params: {}});
325325
withoutMeta(rootNode.matchPath('/')).should.eql({name: 'default', params: {}});
326326
withoutMeta(rootNode.matchPath('', { trailingSlash: true })).should.eql({name: 'default', params: {}});
327+
should.not.exists(rootNode.matchPath('', { trailingSlash: false }));
327328
should.not.exists(rootNode.matchPath('/users/list//', { trailingSlash: true }));
328329
});
329330

0 commit comments

Comments
 (0)