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

lib/agent.js

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy