From 922567dde7b428b44b435bdf0579e5f79526a4d9 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Sun, 24 Dec 2023 14:43:28 +0100 Subject: [PATCH] remove new --- test/static.test.js | 8 ++++---- test/swagger-initializer.test.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/static.test.js b/test/static.test.js index 926a87e..25f40d6 100644 --- a/test/static.test.js +++ b/test/static.test.js @@ -132,7 +132,7 @@ test('/documentation/:file should serve static file from the location of main sp } t.plan(4) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger, config) await fastify.register(fastifySwaggerUi, uiConfig) @@ -180,7 +180,7 @@ test('/documentation/non-existing-file calls custom NotFoundHandler', async (t) } t.plan(1) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger, config) await fastify.register(fastifySwaggerUi) fastify.setNotFoundHandler((request, reply) => { @@ -209,7 +209,7 @@ test('/documentation/:file should be served from custom location', async (t) => } t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger, config) await fastify.register(fastifySwaggerUi, uiConfig) @@ -239,7 +239,7 @@ test('/documentation/:file should be served from custom location with trailing s } t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger, config) await fastify.register(fastifySwaggerUi, uiConfig) diff --git a/test/swagger-initializer.test.js b/test/swagger-initializer.test.js index e4a786a..2e68e39 100644 --- a/test/swagger-initializer.test.js +++ b/test/swagger-initializer.test.js @@ -8,7 +8,7 @@ const fastifySwaggerUi = require('../index') test('/documentation/static/swagger-initializer.js should have default uiConfig', async (t) => { t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger) await fastify.register(fastifySwaggerUi) @@ -24,7 +24,7 @@ test('/documentation/static/swagger-initializer.js should have default uiConfig' test('/documentation/static/swagger-initializer.js should have configurable uiConfig', async (t) => { t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger) await fastify.register(fastifySwaggerUi, { @@ -44,7 +44,7 @@ test('/documentation/static/swagger-initializer.js should have configurable uiCo test('/documentation/static/swagger-initializer.js should have default initOAuth', async (t) => { t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger) await fastify.register(fastifySwaggerUi) @@ -60,7 +60,7 @@ test('/documentation/static/swagger-initializer.js should have default initOAuth test('/documentation/static/swagger-initializer.js should have configurable initOAuth', async (t) => { t.plan(2) - const fastify = new Fastify() + const fastify = Fastify() await fastify.register(fastifySwagger) await fastify.register(fastifySwaggerUi, { initOAuth: {