Skip to content

Commit 36ab759

Browse files
authored
fix (test): remove preParsing references (#166)
1 parent fc8eca1 commit 36ab759

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/hooks.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ const Fastify = require('fastify')
66
const fastifyWebsocket = require('..')
77
const WebSocket = require('ws')
88

9-
test('Should run onRequest, preParsing, preValidation, preHandler hooks', t => {
10-
t.plan(7)
9+
test('Should run onRequest, preValidation, preHandler hooks', t => {
10+
t.plan(6)
1111
const fastify = Fastify()
1212

1313
t.teardown(() => fastify.close())
1414

1515
fastify.register(fastifyWebsocket)
1616

1717
fastify.addHook('onRequest', async (request, reply) => t.ok('called', 'onRequest'))
18-
fastify.addHook('preParsing', async (request, reply, payload) => t.ok('called', 'preParsing'))
1918
fastify.addHook('preValidation', async (request, reply) => t.ok('called', 'preValidation'))
2019
fastify.addHook('preHandler', async (request, reply) => t.ok('called', 'preHandler'))
2120

0 commit comments

Comments
 (0)