Buckets:
| const { test } = require('node: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.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' })) | |
| }) | |
Xet Storage Details
- Size:
- 624 Bytes
- Xet hash:
- acadc80a02f681d5108c48ee75590e92dfc34820cd38e6fbe894e6d4b05b38cf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.