Skip to content

Commit 225118c

Browse files
authored
Merge pull request #834 from Bruception/master
fix: TestAgent not inheriting Agent properties
2 parents 1e18c20 + f290431 commit 225118c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/agent.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const Test = require('./test.js');
2626
function TestAgent(app, options = {}) {
2727
if (!(this instanceof TestAgent)) return new TestAgent(app, options);
2828

29-
Agent.call(this, options);
29+
const agent = new Agent(options);
30+
Object.assign(this, agent);
31+
3032
this._options = options;
3133

3234
if (typeof app === 'function') {

0 commit comments

Comments
 (0)