Skip to content

Commit 0ddd4a5

Browse files
committed
Updates
1 parent 37e1fc1 commit 0ddd4a5

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.taprc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ jsx: false
33
flow: false
44
jobs: 1
55
coverage: true
6+
check-coverage: false

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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 --no-check-coverage test/test.js"
12+
"unit": "tap test/test.js"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -37,7 +37,7 @@
3737
"redis": "^3.0.2",
3838
"standard": "^16.0.0",
3939
"tap": "^15.0.2",
40-
"tsd": "^0.14.0"
40+
"tsd": "^0.17.0"
4141
},
4242
"dependencies": {
4343
"fastify-plugin": "^3.0.0",

test/test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test('fastify.redis should support url', (t) => {
6969
const fastifyRedis = proxyquire('..', {
7070
ioredis: function Redis (path, options) {
7171
t.equal(path, 'redis://127.0.0.1')
72-
t.deepEqual(options, {
72+
t.same(options, {
7373
otherOption: 'foo'
7474
})
7575
this.quit = () => {}
@@ -196,7 +196,7 @@ test('custom client', (t) => {
196196

197197
fastify.ready((err) => {
198198
t.error(err)
199-
t.is(fastify.redis, redis)
199+
t.equal(fastify.redis, redis)
200200

201201
fastify.redis.set('key', 'value', (err) => {
202202
t.error(err)
@@ -224,7 +224,7 @@ test('custom client gets closed', (t) => {
224224

225225
fastify.ready((err) => {
226226
t.error(err)
227-
t.is(fastify.redis, redis)
227+
t.equal(fastify.redis, redis)
228228

229229
fastify.redis.set('key', 'value', (err) => {
230230
t.error(err)
@@ -258,7 +258,7 @@ test('custom client inside a namespace', (t) => {
258258

259259
fastify.ready((err) => {
260260
t.error(err)
261-
t.is(fastify.redis.test, redis)
261+
t.equal(fastify.redis.test, redis)
262262

263263
fastify.redis.test.set('key', 'value', (err) => {
264264
t.error(err)
@@ -290,7 +290,7 @@ test('custom client inside a namespace gets closed', (t) => {
290290

291291
fastify.ready((err) => {
292292
t.error(err)
293-
t.is(fastify.redis.test, redis)
293+
t.equal(fastify.redis.test, redis)
294294

295295
fastify.redis.test.set('key', 'value', (err) => {
296296
t.error(err)
@@ -331,7 +331,7 @@ test('fastify.redis.test should throw with duplicate connection namespaces', (t)
331331
})
332332

333333
fastify.ready((err) => {
334-
t.is(err.message, `Redis '${namespace}' instance namespace has already been registered`)
334+
t.equal(err.message, `Redis '${namespace}' instance namespace has already been registered`)
335335
})
336336
})
337337

@@ -350,7 +350,7 @@ test('Should throw when trying to register multiple instances without giving a n
350350
})
351351

352352
fastify.ready((err) => {
353-
t.is(err.message, 'fastify-redis has already been registered')
353+
t.equal(err.message, 'fastify-redis has already been registered')
354354
})
355355
})
356356

test/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Fastify, { FastifyRequest } from 'fastify';
22
import fastifyRedis from '../..';
3-
import * as IORedis from 'ioredis';
3+
import IORedis from 'ioredis';
44

55
const app = Fastify();
66
const redis = new IORedis({ host: 'localhost', port: 6379 });

0 commit comments

Comments
 (0)