Buckets:
| const { test } = require('node:test') | |
| const fastify = require('..')() | |
| const noop = () => {} | |
| const opts = { | |
| schema: { | |
| response: { | |
| '2xx': { | |
| type: 'object', | |
| properties: { | |
| hello: { | |
| type: 'string' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| test('chainable - get', t => { | |
| t.plan(1) | |
| t.assert.strictEqual(fastify.get('/', opts, noop), fastify) | |
| }) | |
| test('chainable - post', t => { | |
| t.plan(1) | |
| t.assert.strictEqual(fastify.post('/', opts, noop), fastify) | |
| }) | |
| test('chainable - route', t => { | |
| t.plan(1) | |
| t.assert.strictEqual(fastify.route({ | |
| method: 'GET', | |
| url: '/other', | |
| schema: opts.schema, | |
| handler: noop | |
| }), fastify) | |
| }) | |
Xet Storage Details
- Size:
- 703 Bytes
- Xet hash:
- 536a2f579bed039172c6d93da6f16942b9824a525bb460f0dbea347c1aa05a7d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.