Skip to content

Commit cfac991

Browse files
committed
1 parent 02b9561 commit cfac991

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/fastify/fastify-caching#readme",
3131
"devDependencies": {
32-
"fastify": "^3.0.0-rc.1",
32+
"fastify": "^3.0.0-rc.4",
3333
"pre-commit": "^1.2.2",
3434
"snazzy": "^8.0.0",
3535
"standard": "^14.0.0",

test/cache.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ test('cache is usable', (t) => {
3030
})
3131
.register(plugin)
3232

33-
instance.addHook('preParsing', function (req, reply, done) {
33+
instance.addHook('preParsing', function (req, reply, payload, done) {
3434
t.is(this[Symbol.for('fastify-caching.registered')], true)
35-
done()
35+
done(null, payload)
3636
})
3737

3838
instance.get('/one', (req, reply) => {

0 commit comments

Comments
 (0)