Skip to content

Commit

Permalink
only use require in the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Jan 4, 2022
1 parent 1dc25a1 commit 19dcd1e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Expand Up @@ -3,9 +3,10 @@
/**
* Module dependencies.
*/
var methods = require('methods');
var Test = require('./lib/test');
var http = require('http');
const methods = require('methods');
const http = require('http');
const Test = require('./lib/test.js');
const agent = require('./lib/agent.js');

/**
* Test against the given `app`,
Expand Down Expand Up @@ -42,4 +43,4 @@ module.exports.Test = Test;
/**
* Expose the agent function
*/
module.exports.agent = require('./lib/agent');
module.exports.agent = agent

0 comments on commit 19dcd1e

Please sign in to comment.