Buckets:
| import { errorCodes } from '../../fastify.js' | |
| import { test } from 'node:test' | |
| test('errorCodes in ESM', async t => { | |
| // test a custom fastify error using errorCodes with ESM | |
| const customError = errorCodes.FST_ERR_VALIDATION('custom error message') | |
| t.assert.ok(typeof customError !== 'undefined') | |
| t.assert.ok(customError instanceof errorCodes.FST_ERR_VALIDATION) | |
| t.assert.strictEqual(customError.message, 'custom error message') | |
| }) | |
Xet Storage Details
- Size:
- 443 Bytes
- Xet hash:
- afaced20e2253a65e90e2451845961ebfc23fb0dc858f3da84b8e0eba051e258
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.