Skip to content

Commit

Permalink
test(types): await async function
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Dec 15, 2024
1 parent aaa777b commit 0fc7c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function run () {

fastify.addHook('onRequest', fastify.csrfProtection)
}
run()
await run()

fastify.register(FastifyCsrfProtection, { csrfOpts: { algorithm: 'sha1', hmacKey: 'hmac' } })
expectError(fastify.register(FastifyCsrfProtection, { csrfOpts: { algorithm: 1 } }))
Expand Down

0 comments on commit 0fc7c6e

Please sign in to comment.