File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1- esm: false
21ts: false
32jsx: false
43flow: false
Original file line number Diff line number Diff line change 99 "redis" : " docker run -p 6379:6379 --rm redis:5" ,
1010 "test" : " npm run lint && npm run unit && npm run typescript" ,
1111 "typescript" : " tsd" ,
12- "unit" : " tap test/test.js"
12+ "unit" : " tap --no-check-coverage test/test.js"
1313 },
1414 "repository" : {
1515 "type" : " git" ,
3636 "proxyquire" : " ^2.1.3" ,
3737 "redis" : " ^3.0.2" ,
3838 "standard" : " ^16.0.0" ,
39- "tap" : " ^14.10.7 " ,
39+ "tap" : " ^15.0.2 " ,
4040 "tsd" : " ^0.14.0"
4141 },
4242 "dependencies" : {
Original file line number Diff line number Diff line change @@ -6,21 +6,16 @@ const test = t.test
66const Fastify = require ( 'fastify' )
77const fastifyRedis = require ( '..' )
88
9- t . beforeEach ( ( done ) => {
9+ t . beforeEach ( async ( ) => {
1010 const fastify = Fastify ( )
1111
1212 fastify . register ( fastifyRedis , {
1313 host : '127.0.0.1'
1414 } )
1515
16- fastify . ready ( ( err ) => {
17- t . error ( err )
18-
19- fastify . redis . flushall ( ( ) => {
20- fastify . close ( )
21- done ( )
22- } )
23- } )
16+ await fastify . ready ( )
17+ await fastify . redis . flushall ( )
18+ await fastify . close ( )
2419} )
2520
2621test ( 'fastify.redis should exist' , ( t ) => {
You can’t perform that action at this time.
0 commit comments