We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e18c20 + f290431 commit 225118cCopy full SHA for 225118c
1 file changed
lib/agent.js
@@ -26,7 +26,9 @@ const Test = require('./test.js');
26
function TestAgent(app, options = {}) {
27
if (!(this instanceof TestAgent)) return new TestAgent(app, options);
28
29
- Agent.call(this, options);
+ const agent = new Agent(options);
30
+ Object.assign(this, agent);
31
+
32
this._options = options;
33
34
if (typeof app === 'function') {
0 commit comments