Skip to content

Commit

Permalink
chore: enable lab type tests
Browse files Browse the repository at this point in the history
Follow-up to #126.
  • Loading branch information
Marsup committed Aug 4, 2023
1 parent 2888daa commit f8bfbec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 10 additions & 1 deletion test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
])
});

0 comments on commit f8bfbec

Please sign in to comment.