Aktueller Stand
This commit is contained in:
9
backend/node_modules/find-my-way/test/issue-154.test.js
generated
vendored
9
backend/node_modules/find-my-way/test/issue-154.test.js
generated
vendored
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user