Skip to content

Commit 2eedcbe

Browse files
committed
refactored the import of express rate limeter to work in test file
1 parent 9175747 commit 2eedcbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/middleware/express.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Request, Response, NextFunction, RequestHandler } from 'express';
22
import { GraphQLSchema, buildSchema } from 'graphql';
33
import * as ioredis from 'ioredis';
44

5-
import expressRateLimitMiddleware from '../../src/middleware/index';
5+
import { expressRateLimiter as expressRateLimitMiddleware } from '../../src/middleware/index';
66

77
// eslint-disable-next-line @typescript-eslint/no-var-requires
88
const RedisMock = require('ioredis-mock');

0 commit comments

Comments
 (0)