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,6 +1,6 @@
'use strict'
const { test } = require('tap')
const { test } = require('node:test')
const Fastify = require('fastify')
const fastifySwagger = require('@fastify/swagger')
const fastifyHelmet = require('@fastify/helmet')
@@ -33,7 +33,7 @@ test('fastify will response swagger csp', async (t) => {
})
// route for testing CSP headers
fastify.get('/', (req, reply) => {
fastify.get('/', (_req, reply) => {
reply.send({
foo: 'bar'
})
@@ -43,5 +43,5 @@ test('fastify will response swagger csp', async (t) => {
method: 'GET',
url: '/'
})
t.same(res.headers['content-security-policy'], csp)
t.assert.deepStrictEqual(res.headers['content-security-policy'], csp)
})