From 1c8930d2b1e904af8f5c6a567c232d45ef881bc1 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Sun, 18 Sep 2022 18:58:34 +0800 Subject: [PATCH] refactor(TestAgent): removed the host param when creating `Test` object `Test` constructor has already removed the host param in de056d2c904ae19f3bc3ac2b3015f88f06915bab --- lib/agent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/agent.js b/lib/agent.js index 1b4aa27..c501642 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -39,7 +39,7 @@ TestAgent.prototype.host = function(host) { // override HTTP verb methods methods.forEach(function(method) { TestAgent.prototype[method] = function(url, fn) { // eslint-disable-line no-unused-vars - const req = new Test(this.app, method.toUpperCase(), url, this._host); + const req = new Test(this.app, method.toUpperCase(), url); if (this._host) { req.set('host', this._host);