This commit is contained in:
heiye111
2025-09-20 21:06:53 +08:00
commit c74f28caa7
2539 changed files with 365006 additions and 0 deletions

18
node_modules/find-my-way/test/issue-182.test.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict'
const { test } = require('node:test')
const FindMyWay = require('..')
test('Set method property when splitting node', t => {
t.plan(1)
const findMyWay = FindMyWay()
function handler (req, res, params) {
t.assert.ok()
}
findMyWay.on('GET', '/health-a/health', handler)
findMyWay.on('GET', '/health-b/health', handler)
t.assert.ok(!findMyWay.prettyPrint().includes('undefined'))
})