Aktueller Stand

This commit is contained in:
2026-01-22 19:05:45 +01:00
parent 85dee61a4d
commit e280e4eadb
1967 changed files with 397327 additions and 74093 deletions

View File

@@ -1,14 +1,13 @@
'use strict'
const t = require('tap')
const test = t.test
const { test } = require('node:test')
const FindMyWay = require('../')
test('Nested static parametric route, url with parameter common prefix > 1', t => {
t.plan(1)
const findMyWay = FindMyWay({
defaultRoute: (req, res) => {
t.fail('Should not be defaultRoute')
t.assert.fail('Should not be defaultRoute')
}
})
@@ -28,5 +27,5 @@ test('Nested static parametric route, url with parameter common prefix > 1', t =
res.end('{"message":"hello world"}')
})
t.same(findMyWay.find('GET', '/api/foo/b-123/bar').params, { id: 'b-123' })
t.assert.deepEqual(findMyWay.find('GET', '/api/foo/b-123/bar').params, { id: 'b-123' })
})