Skip to content

Commit f290431

Browse files
committedApr 24, 2024·
Fix TestAgent not inheriting Agent properties
1 parent 1e18c20 commit f290431

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)
Please sign in to comment.