diff --git a/package.json b/package.json index bb20b61..60f4b25 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,12 @@ "@hapi/code": "^9.0.3", "@hapi/eslint-plugin": "*", "@hapi/lab": "^25.1.2", - "redis-parser": "^3.0.0" + "@types/node": "^16.18.39", + "redis-parser": "^3.0.0", + "typescript": "^5.1.6" }, "scripts": { - "test": "lab -t 100 -a @hapi/code -L -m 15000", + "test": "lab -t 100 -a @hapi/code -L -m 15000 -Y", "test-cov-html": "lab -r html -o coverage.html -a @hapi/code -L" }, "license": "BSD-3-Clause" diff --git a/test/types.ts b/test/types.ts index 8f19f65..1e06db1 100644 --- a/test/types.ts +++ b/test/types.ts @@ -20,5 +20,14 @@ cache.set({ new Engine({ - client: new Cluster([new Redis(), new Redis()]) + client: new Cluster([ + { + host: '127.0.0.1', + port: 27379 + }, + { + host: '127.0.0.2', + port: 27379 + } + ]) });