Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

20
backend/node_modules/find-my-way/test/issue-93.test.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
'use strict'
const t = require('tap')
const test = t.test
const FindMyWay = require('../')
const noop = () => {}
test('Should keep semver store when split node', t => {
t.plan(4)
const findMyWay = FindMyWay()
findMyWay.on('GET', '/t1', { constraints: { version: '1.0.0' } }, noop)
findMyWay.on('GET', '/t2', { constraints: { version: '2.1.0' } }, noop)
t.ok(findMyWay.find('GET', '/t1', { version: '1.0.0' }))
t.ok(findMyWay.find('GET', '/t2', { version: '2.x' }))
t.notOk(findMyWay.find('GET', '/t1', { version: '2.x' }))
t.notOk(findMyWay.find('GET', '/t2', { version: '1.0.0' }))
})