Skip to content

Commit

Permalink
test(types): await async function (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Dec 15, 2024
1 parent aaa777b commit 1a4b9c3
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 1a4b9c3

Please sign in to comment.