Aktueller Stand
This commit is contained in:
6
backend/node_modules/@fastify/swagger-ui/test/integration.test.js
generated
vendored
6
backend/node_modules/@fastify/swagger-ui/test/integration.test.js
generated
vendored
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user