Skip to content

Commit

Permalink
remove new
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Dec 24, 2023
1 parent 242f22a commit 922567d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/static.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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) => {
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions test/swagger-initializer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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, {
Expand All @@ -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)

Expand All @@ -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: {
Expand Down

0 comments on commit 922567d

Please sign in to comment.