download
raw
398 Bytes
'use strict'
const { test } = require('node:test')
const FindMyWay = require('..')
test('find calls can pass no constraints', t => {
t.plan(3)
const findMyWay = FindMyWay()
findMyWay.on('GET', '/a', () => {})
findMyWay.on('GET', '/a/b', () => {})
t.assert.ok(findMyWay.find('GET', '/a'))
t.assert.ok(findMyWay.find('GET', '/a/b'))
t.assert.ok(!findMyWay.find('GET', '/a/b/c'))
})

Xet Storage Details

Size:
398 Bytes
·
Xet hash:
576ee87de60c6ef772e79f72623ab86963847bdb4e88c41d8dcef9ca0dcbe78c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.