Skip to content

Commit

Permalink
fix: remove .json
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Mar 30, 2023
1 parent 618f370 commit 16cf39d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/logger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,6 @@ test('Should set the log level for the customized 404 handler', async (t) => {

{
const response = await fastify.inject({ method: 'GET', url: '/' })
await response.json()
t.equal(response.statusCode, 404)
}

Expand Down Expand Up @@ -1292,8 +1291,8 @@ test('file option', async (t) => {
const fastify = Fastify({
logger: { file }
})
t.teardown(fastify.close.bind(fastify))
t.teardown(fastify.log.flush.bind(fastify.log))
t.teardown(fastify.close.bind(fastify))

fastify.get('/', function (req, reply) {
t.ok(req.log)
Expand Down

0 comments on commit 16cf39d

Please sign in to comment.