Aktueller Stand

This commit is contained in:
2026-01-22 19:05:45 +01:00
parent 85dee61a4d
commit e280e4eadb
1967 changed files with 397327 additions and 74093 deletions

View File

@@ -1,7 +1,6 @@
'use strict'
const t = require('tap')
const test = t.test
const { test } = require('node:test')
const fastify = require('..')()
const noop = () => {}
@@ -22,17 +21,17 @@ const opts = {
test('chainable - get', t => {
t.plan(1)
t.type(fastify.get('/', opts, noop), fastify)
t.assert.strictEqual(fastify.get('/', opts, noop), fastify)
})
test('chainable - post', t => {
t.plan(1)
t.type(fastify.post('/', opts, noop), fastify)
t.assert.strictEqual(fastify.post('/', opts, noop), fastify)
})
test('chainable - route', t => {
t.plan(1)
t.type(fastify.route({
t.assert.strictEqual(fastify.route({
method: 'GET',
url: '/other',
schema: opts.schema,