We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51b23d4 commit 118719aCopy full SHA for 118719a
test/index.test.js
@@ -111,13 +111,13 @@ test('Create error with no statusCode property', t => {
111
test('Should throw when error code has no fastify code', t => {
112
t.plan(1)
113
114
- t.throws(() => createError(), 'Fastify error code must not be empty')
+ t.throws(() => createError(), new Error('Fastify error code must not be empty'))
115
})
116
117
test('Should throw when error code has no message', t => {
118
119
120
- t.throws(() => createError('code'), 'Fastify error message must not be empty')
+ t.throws(() => createError('code'), new Error('Fastify error message must not be empty'))
121
122
123
test('Create error with different base', t => {
0 commit comments