Skip to content

Commit 45d4b46

Browse files
committed
chore: Updated dependencies.
1 parent 6a2b4ed commit 45d4b46

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"dependencies": {
4343
"ajv": "^8.11.0",
4444
"fastify-plugin": "^4.2.1",
45-
"http-errors-enhanced": "^1.0.11"
45+
"http-errors-enhanced": "^1.0.12"
4646
},
4747
"devDependencies": {
4848
"@cowtech/eslint-config": "^8.7.5",

test/index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ function routes(instance: FastifyInstance, _options: unknown, done: Callback): v
2222
}
2323
})
2424

25+
instance.post('/bad-gateway', {
26+
handler() {
27+
return Promise.reject(new BadGatewayError('This was the error message.'))
28+
}
29+
})
30+
2531
instance.get('/headers', {
2632
handler() {
2733
const error = createError(NOT_FOUND, 'This was the error message.', {

0 commit comments

Comments
 (0)