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,7 +1,6 @@
'use strict'
const t = require('tap')
const test = t.test
const { test } = require('node:test')
const FindMyWay = require('..')
const noop = () => {}
@@ -10,13 +9,13 @@ test('Should throw when not sending a string', t => {
const findMyWay = FindMyWay()
t.throws(() => {
t.assert.throws(() => {
findMyWay.on('GET', '/t1', { constraints: { version: 42 } }, noop)
})
t.throws(() => {
t.assert.throws(() => {
findMyWay.on('GET', '/t2', { constraints: { version: null } }, noop)
})
t.throws(() => {
t.assert.throws(() => {
findMyWay.on('GET', '/t2', { constraints: { version: true } }, noop)
})
})