You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
407 B
20 lines
407 B
3 years ago
|
'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/)
|
||
|
})
|