Skip to content

Commit

Permalink
test: add test for addHttpMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvenschraut committed Nov 4, 2024
1 parent e9b8303 commit e550f50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/types/instance.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ function invalidSchemaErrorFormatter (err: Error) {
}
expectError(server.setSchemaErrorFormatter(invalidSchemaErrorFormatter))

expectType<FastifyInstance>(server.addHttpMethod('SEARCH', { hasBody: true }))

// test listen opts objects
expectAssignable<PromiseLike<string>>(server.listen())
expectAssignable<PromiseLike<string>>(server.listen({ port: 3000 }))
Expand Down

0 comments on commit e550f50

Please sign in to comment.