We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e18c20 commit f290431Copy full SHA for f290431
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