Skip to content

Commit

Permalink
one more await
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Dec 23, 2023
1 parent 3bdb28d commit 95a662e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ test('/v1/foobar should redirect to ./foobar/static/index.html - in plugin', asy
t.plan(3)
const fastify = Fastify()

fastify.register(async function (fastify, options) {
await fastify.register(async function (fastify, options) {
await fastify.register(fastifySwagger, swaggerOption)
await fastify.register(fastifySwaggerUi, { routePrefix: '/foobar' })

Expand All @@ -217,7 +217,7 @@ test('/v1/foobar/ should redirect to ./static/index.html - in plugin', async (t)
t.plan(3)
const fastify = Fastify()

fastify.register(async function (fastify, options) {
await fastify.register(async function (fastify, options) {
await fastify.register(fastifySwagger, swaggerOption)
await fastify.register(fastifySwaggerUi, { routePrefix: '/foobar' })

Expand Down

0 comments on commit 95a662e

Please sign in to comment.