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
2
1
ts: false
3
2
jsx: false
4
3
flow: false
Original file line number Diff line number Diff line change 9
9
"redis" : " docker run -p 6379:6379 --rm redis:5" ,
10
10
"test" : " npm run lint && npm run unit && npm run typescript" ,
11
11
"typescript" : " tsd" ,
12
- "unit" : " tap test/test.js"
12
+ "unit" : " tap --no-check-coverage test/test.js"
13
13
},
14
14
"repository" : {
15
15
"type" : " git" ,
36
36
"proxyquire" : " ^2.1.3" ,
37
37
"redis" : " ^3.0.2" ,
38
38
"standard" : " ^16.0.0" ,
39
- "tap" : " ^14.10.7 " ,
39
+ "tap" : " ^15.0.2 " ,
40
40
"tsd" : " ^0.14.0"
41
41
},
42
42
"dependencies" : {
Original file line number Diff line number Diff line change @@ -6,21 +6,16 @@ const test = t.test
6
6
const Fastify = require ( 'fastify' )
7
7
const fastifyRedis = require ( '..' )
8
8
9
- t . beforeEach ( ( done ) => {
9
+ t . beforeEach ( async ( ) => {
10
10
const fastify = Fastify ( )
11
11
12
12
fastify . register ( fastifyRedis , {
13
13
host : '127.0.0.1'
14
14
} )
15
15
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 ( )
24
19
} )
25
20
26
21
test ( 'fastify.redis should exist' , ( t ) => {
You can’t perform that action at this time.
0 commit comments