Skip to content

Commit c4d56a5

Browse files
committed
[tests] fix test using undefined url
1 parent 9e74a63 commit c4d56a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lib-http-proxy-common-test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ describe('lib/http-proxy/common.js', function () {
3838

3939
it('should set the agent to false if none is given', function () {
4040
var outgoing = {};
41-
common.setupOutgoing(outgoing, {target: {},}, {});
41+
common.setupOutgoing(outgoing, {target:
42+
'http://localhost'
43+
}, { url: '/' });
4244
expect(outgoing.agent).to.eql(false);
4345
});
4446

0 commit comments

Comments
 (0)