Skip to content

Commit 30942a2

Browse files
nikeeednlup
authored andcommitted
fix: typo
1 parent 34af0fb commit 30942a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function plugin (fastify, opts, next) {
6262
return next(new TypeError(`timeout must be a number, received ${typeof config.timeout}`))
6363
}
6464
if (config.timeout < 1) {
65-
return next(new RangeError(`timeout must be greather than 0, received ${config.timeout}`))
65+
return next(new RangeError(`timeout must be greater than 0, received ${config.timeout}`))
6666
}
6767
if (typeof config.strict !== 'boolean') {
6868
return next(new TypeError(`strict must be a boolean, received ${typeof config.strict}`))

test/plugin.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test('invalid options', async t => {
4242
opts: {
4343
timeout: 0
4444
},
45-
error: new RangeError('timeout must be greather than 0, received 0')
45+
error: new RangeError('timeout must be greater than 0, received 0')
4646
},
4747
{
4848
opts: {

0 commit comments

Comments
 (0)