Skip to content

Commit f4c4c6c

Browse files
committed
lint fix
1 parent 1573f57 commit f4c4c6c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"plugins": ["import", "prettier"],
2121
"rules": {
2222
"no-plusplus": [2, {
23-
"allowForLoopAfterthoughts": "true"
23+
"allowForLoopAfterthoughts": true
2424
}],
2525
"prettier/prettier": [
2626
"error"
2727
]
2828
},
29-
"ignorePatterns": ["jest.config.js"]
29+
"ignorePatterns": ["jest.config.ts"]
3030
}

test/middleware/express.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ xdescribe('Express Middleware tests', () => {
7070
describe('...successfully connects to redis using standard connection options', () => {
7171
beforeEach(() => {
7272
// TODO: Setup mock redis store.
73-
redisMock;
7473
});
7574

7675
test('...via url', () => {
@@ -346,11 +345,13 @@ xdescribe('Express Middleware tests', () => {
346345
await client.connect();
347346
// Check for change in the redis store for the IP key
348347

348+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
349349
// @ts-ignore mockRequest will always have an ip address.
350350
const initialValue: string | null = await client.get(mockRequest.ip);
351351

352352
middleware(mockRequest as Request, mockResponse as Response, nextFunction);
353353

354+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
354355
// @ts-ignore
355356
const finalValue: string | null = await client.get(mockRequest.ip);
356357

0 commit comments

Comments
 (0)