First commit
This commit is contained in:
19
node_modules/find-my-way/test/issue-182.test.js
generated
vendored
Normal file
19
node_modules/find-my-way/test/issue-182.test.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict'
|
||||
|
||||
const t = require('tap')
|
||||
const test = t.test
|
||||
const FindMyWay = require('..')
|
||||
|
||||
test('Set method property when splitting node', t => {
|
||||
t.plan(1)
|
||||
const findMyWay = FindMyWay()
|
||||
|
||||
function handler (req, res, params) {
|
||||
t.pass()
|
||||
}
|
||||
|
||||
findMyWay.on('GET', '/health-a/health', handler)
|
||||
findMyWay.on('GET', '/health-b/health', handler)
|
||||
|
||||
t.notMatch(findMyWay.prettyPrint(), /undefined/)
|
||||
})
|
||||
Reference in New Issue
Block a user