Skip to content

Commit

Permalink
fix(TestAgent): Instantiate Agent with options
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiagomrn committed Apr 24, 2024
1 parent 4db62a0 commit 1dca993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Test = require('./test.js');

function TestAgent(app, options = {}) {
if (!(this instanceof TestAgent)) return new TestAgent(app, options);
Object.defineProperties(this, Object.getOwnPropertyDescriptors(new Agent()));
Object.defineProperties(this, Object.getOwnPropertyDescriptors(new Agent(options)));
this._options = options;

if (typeof app === 'function') {
Expand Down

0 comments on commit 1dca993

Please sign in to comment.