Skip to content

Commit 02450d2

Browse files
authored
test(index): prefix unused params with underscores (#212)
Signed-off-by: Frazer Smith <[email protected]>
1 parent 058517e commit 02450d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/index.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ test('Should not throw within different contexts', (t) => {
377377
const fastify = Fastify()
378378
t.teardown(() => fastify.close())
379379

380-
fastify.register(function (instance, options, next) {
380+
fastify.register(function (instance, _options, next) {
381381
instance.register(fastifyRedis, {
382382
host: '127.0.0.1'
383383
})
384384
next()
385385
})
386386

387-
fastify.register(function (instance, options, next) {
387+
fastify.register(function (instance, _options, next) {
388388
instance
389389
.register(fastifyRedis, {
390390
host: '127.0.0.1',
@@ -495,13 +495,13 @@ test('catch .ping() errors', (t) => {
495495
const fastify = Fastify()
496496

497497
const fastifyRedis = proxyquire('..', {
498-
ioredis: function Redis (path, options) {
498+
ioredis: function Redis () {
499499
this.ping = () => {
500500
return Promise.reject(new Redis.ReplyError('ping error'))
501501
}
502502
this.quit = () => {}
503503
this.info = cb => cb(null, 'info')
504-
this.on = function (name, handler) {
504+
this.on = function () {
505505
return this
506506
}
507507
this.off = function () { return this }

0 commit comments

Comments
 (0)