Skip to content

Commit 1c8930d

Browse files
committedSep 20, 2022
refactor(TestAgent): removed the host param when creating Test object
`Test` constructor has already removed the host param in de056d2
1 parent 5e23869 commit 1c8930d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ TestAgent.prototype.host = function(host) {
3939
// override HTTP verb methods
4040
methods.forEach(function(method) {
4141
TestAgent.prototype[method] = function(url, fn) { // eslint-disable-line no-unused-vars
42-
const req = new Test(this.app, method.toUpperCase(), url, this._host);
42+
const req = new Test(this.app, method.toUpperCase(), url);
4343

4444
if (this._host) {
4545
req.set('host', this._host);

0 commit comments

Comments
 (0)
Please sign in to comment.