File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 4
4
* Module dependencies.
5
5
*/
6
6
7
- var Agent = require ( 'superagent' ) . agent ;
8
- var methods = require ( 'methods' ) ;
9
- var http = require ( 'http' ) ;
10
- var Test = require ( './test' ) ;
11
-
12
7
/**
13
8
* Expose `Agent`.
14
9
*/
15
10
16
11
module . exports = TestAgent ;
12
+ const { agent : Agent } = require ( 'superagent' ) ;
13
+ const methods = require ( 'methods' ) ;
14
+ const http = require ( 'http' ) ;
15
+ const Test = require ( './test' ) ;
17
16
18
17
/**
19
18
* Initialize a new `TestAgent`.
@@ -50,7 +49,7 @@ TestAgent.prototype.host = function(host) {
50
49
// override HTTP verb methods
51
50
methods . forEach ( function ( method ) {
52
51
TestAgent . prototype [ method ] = function ( url , fn ) { // eslint-disable-line no-unused-vars
53
- var req = new Test ( this . app , method . toUpperCase ( ) , url , this . _host ) ;
52
+ const req = new Test ( this . app , method . toUpperCase ( ) , url , this . _host ) ;
54
53
req . ca ( this . _ca ) ;
55
54
req . cert ( this . _cert ) ;
56
55
req . key ( this . _key ) ;
You can’t perform that action at this time.
0 commit comments