@@ -377,14 +377,14 @@ test('Should not throw within different contexts', (t) => {
377
377
const fastify = Fastify ( )
378
378
t . teardown ( ( ) => fastify . close ( ) )
379
379
380
- fastify . register ( function ( instance , options , next ) {
380
+ fastify . register ( function ( instance , _options , next ) {
381
381
instance . register ( fastifyRedis , {
382
382
host : '127.0.0.1'
383
383
} )
384
384
next ( )
385
385
} )
386
386
387
- fastify . register ( function ( instance , options , next ) {
387
+ fastify . register ( function ( instance , _options , next ) {
388
388
instance
389
389
. register ( fastifyRedis , {
390
390
host : '127.0.0.1' ,
@@ -495,13 +495,13 @@ test('catch .ping() errors', (t) => {
495
495
const fastify = Fastify ( )
496
496
497
497
const fastifyRedis = proxyquire ( '..' , {
498
- ioredis : function Redis ( path , options ) {
498
+ ioredis : function Redis ( ) {
499
499
this . ping = ( ) => {
500
500
return Promise . reject ( new Redis . ReplyError ( 'ping error' ) )
501
501
}
502
502
this . quit = ( ) => { }
503
503
this . info = cb => cb ( null , 'info' )
504
- this . on = function ( name , handler ) {
504
+ this . on = function ( ) {
505
505
return this
506
506
}
507
507
this . off = function ( ) { return this }
0 commit comments