Buckets:
| const { test } = require('node:test') | |
| const factory = require('../') | |
| const noop = function () {} | |
| test('issue-63', (t) => { | |
| t.plan(2) | |
| const fmw = factory() | |
| t.assert.throws(function () { | |
| fmw.on('GET', '/foo/:id(a', noop) | |
| }) | |
| try { | |
| fmw.on('GET', '/foo/:id(a', noop) | |
| t.assert.fail('should fail') | |
| } catch (err) { | |
| t.assert.equal(err.message, 'Invalid regexp expression in "/foo/:id(a"') | |
| } | |
| }) | |
Xet Storage Details
- Size:
- 434 Bytes
- Xet hash:
- d11d3312cd2b8c4c9089543492717fda9f7a2b86df950d862ccf2ea340071a32
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.