First commit
This commit is contained in:
15
node_modules/find-my-way/test/issue-280.test.js
generated
vendored
Normal file
15
node_modules/find-my-way/test/issue-280.test.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict'
|
||||
|
||||
const t = require('tap')
|
||||
const test = t.test
|
||||
const FindMyWay = require('../')
|
||||
|
||||
test('Wildcard route match when regexp route fails', (t) => {
|
||||
t.plan(1)
|
||||
const findMyWay = FindMyWay()
|
||||
|
||||
findMyWay.on('GET', '/:a(a)', () => {})
|
||||
findMyWay.on('GET', '/*', () => {})
|
||||
|
||||
t.same(findMyWay.find('GET', '/b', {}).params, { '*': 'b' })
|
||||
})
|
||||
Reference in New Issue
Block a user