@@ -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