Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee authored and dnlup committed Dec 21, 2023
1 parent 34af0fb commit 30942a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function plugin (fastify, opts, next) {
return next(new TypeError(`timeout must be a number, received ${typeof config.timeout}`))
}
if (config.timeout < 1) {
return next(new RangeError(`timeout must be greather than 0, received ${config.timeout}`))
return next(new RangeError(`timeout must be greater than 0, received ${config.timeout}`))
}
if (typeof config.strict !== 'boolean') {
return next(new TypeError(`strict must be a boolean, received ${typeof config.strict}`))
Expand Down
2 changes: 1 addition & 1 deletion test/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('invalid options', async t => {
opts: {
timeout: 0
},
error: new RangeError('timeout must be greather than 0, received 0')
error: new RangeError('timeout must be greater than 0, received 0')
},
{
opts: {
Expand Down

0 comments on commit 30942a2

Please sign in to comment.