Skip to content

Commit

Permalink
Fix eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Fidelin committed Nov 11, 2022
1 parent 0933d6d commit e9ac738
Show file tree
Hide file tree
Showing 2 changed files with 1,250 additions and 1,022 deletions.
4 changes: 2 additions & 2 deletions lib/mockRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function createRequest(options) {
mockRequest.ip = options.ip || '127.0.0.1';
mockRequest.ips = [mockRequest.ip];

mockRequest.destroy = () => {};
mockRequest.destroy = function () {};

//parse query string from url to object
if (Object.keys(mockRequest.query).length === 0) {
mockRequest.query = require('querystring').parse(mockRequest.url.split('?')[1]);
Expand Down
Loading

0 comments on commit e9ac738

Please sign in to comment.