Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 1, 2024
1 parent 4a3a40e commit 5e21320
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ expectError<FastifyStaticOptions>({
wildcard: '**/**'
})

expectError<FastifyStaticOptions>({
root: '',
hash: '**/**'
})

expectAssignable<FastifyStaticOptions>({
root: '',
hash: true
})

expectAssignable<FastifyStaticOptions>({
root: '',
hash: true,
hashSkip: ['index.html']
})

expectAssignable<FastifyStaticOptions>({
root: '',
list: {
Expand Down

0 comments on commit 5e21320

Please sign in to comment.