Aktueller Stand
This commit is contained in:
11
backend/node_modules/find-my-way/test/issue-93.test.js
generated
vendored
11
backend/node_modules/find-my-way/test/issue-93.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 = () => {}
|
||||
|
||||
@@ -13,8 +12,8 @@ test('Should keep semver store when split node', t => {
|
||||
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' }))
|
||||
t.assert.ok(findMyWay.find('GET', '/t1', { version: '1.0.0' }))
|
||||
t.assert.ok(findMyWay.find('GET', '/t2', { version: '2.x' }))
|
||||
t.assert.ok(!findMyWay.find('GET', '/t1', { version: '2.x' }))
|
||||
t.assert.ok(!findMyWay.find('GET', '/t2', { version: '1.0.0' }))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user