Skip to content

Commit 19dcd1e

Browse files
committedJan 4, 2022
only use require in the top of the file
1 parent 1dc25a1 commit 19dcd1e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
/**
44
* Module dependencies.
55
*/
6-
var methods = require('methods');
7-
var Test = require('./lib/test');
8-
var http = require('http');
6+
const methods = require('methods');
7+
const http = require('http');
8+
const Test = require('./lib/test.js');
9+
const agent = require('./lib/agent.js');
910

1011
/**
1112
* Test against the given `app`,
@@ -42,4 +43,4 @@ module.exports.Test = Test;
4243
/**
4344
* Expose the agent function
4445
*/
45-
module.exports.agent = require('./lib/agent');
46+
module.exports.agent = agent

0 commit comments

Comments
 (0)
Please sign in to comment.