Buckets:
ktongue/docker_container / .cache /opencode /node_modules /fastify /test /internals /context.test.js
| const { test } = require('node:test') | |
| const { kRouteContext } = require('../../lib/symbols') | |
| const Context = require('../../lib/context') | |
| const Fastify = require('../..') | |
| test('context', async context => { | |
| context.plan(1) | |
| await context.test('Should not contain undefined as key prop', async t => { | |
| t.plan(4) | |
| const app = Fastify() | |
| app.get('/', (req, reply) => { | |
| t.assert.ok(req[kRouteContext] instanceof Context) | |
| t.assert.ok(reply[kRouteContext] instanceof Context) | |
| t.assert.ok(!('undefined' in reply[kRouteContext])) | |
| t.assert.ok(!('undefined' in req[kRouteContext])) | |
| reply.send('hello world!') | |
| }) | |
| try { | |
| await app.inject('/') | |
| } catch (e) { | |
| t.assert.fail(e) | |
| } | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 760 Bytes
- Xet hash:
- 848ed10a7fbe2ff49620b1755fc87baae8c221b1fdd6eeed77cbbf027648564b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.