Skip to content

Commit 1a4b9c3

Browse files
authored
test(types): await async function (#173)
Signed-off-by: Frazer Smith <[email protected]>
1 parent aaa777b commit 1a4b9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function run () {
3737

3838
fastify.addHook('onRequest', fastify.csrfProtection)
3939
}
40-
run()
40+
await run()
4141

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

0 commit comments

Comments
 (0)