Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

41
backend/node_modules/fastify/test/chainable.test.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
'use strict'
const t = require('tap')
const test = t.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.type(fastify.get('/', opts, noop), fastify)
})
test('chainable - post', t => {
t.plan(1)
t.type(fastify.post('/', opts, noop), fastify)
})
test('chainable - route', t => {
t.plan(1)
t.type(fastify.route({
method: 'GET',
url: '/other',
schema: opts.schema,
handler: noop
}), fastify)
})