Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
delvedor committed Oct 11, 2017
1 parent 0396233 commit ba5fe5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/issue-28.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ test('Nested wildcards with parametric and static - 7', t => {
t.fail('we should not be here, the url is: ' + req.url)
})

findMyWay.on('GET', '/foo4/param/hello/test/long/route', (req, res, params) => {
findMyWay.on('GET', '/foo4/example/hello/test/long/route', (req, res, params) => {
t.fail('we should not be here, the url is: ' + req.url)
})

Expand Down
4 changes: 2 additions & 2 deletions test/methods.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ test('Static parametric with shared part of the path', t => {
t.fail('We should not be here')
})

findMyWay.on('GET', '/example/:param/nested/test', (req, res, params) => {
findMyWay.on('GET', '/example/:param/nested/oops', (req, res, params) => {
t.is(params.param, 'other')
})

findMyWay.lookup({ method: 'GET', url: '/example/shared/nested/oops' }, null)
findMyWay.lookup({ method: 'GET', url: '/example/other/nested/test' }, null)
findMyWay.lookup({ method: 'GET', url: '/example/other/nested/oops' }, null)
})

test('parametric route with different method', t => {
Expand Down

0 comments on commit ba5fe5f

Please sign in to comment.