Auto-commit 2026-04-29 16:31

This commit is contained in:
2026-04-29 16:31:27 -04:00
parent e8687bb6b2
commit 0495ee5bd2
19691 changed files with 3272886 additions and 138 deletions

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

@@ -0,0 +1,33 @@
'use strict'
const t = require('tap')
const test = t.test
const FindMyWay = require('..')
test('Double colon and parametric children', t => {
t.plan(2)
const findMyWay = FindMyWay()
findMyWay.on('GET', '/::articles', () => {})
findMyWay.on('GET', '/:article_name', () => {})
t.same(findMyWay.find('GET', '/:articles').params, {})
t.same(findMyWay.find('GET', '/articles_param').params, { article_name: 'articles_param' })
})
test('Double colon and parametric children', t => {
t.plan(2)
const findMyWay = FindMyWay()
findMyWay.on('GET', '/::test::foo/:param/::articles', () => {})
findMyWay.on('GET', '/::test::foo/:param/:article_name', () => {})
t.same(
findMyWay.find('GET', '/:test:foo/param_value1/:articles').params,
{ param: 'param_value1' }
)
t.same(
findMyWay.find('GET', '/:test:foo/param_value2/articles_param').params,
{ param: 'param_value2', article_name: 'articles_param' }
)
})