Skip to content

Commit

Permalink
[tests] fix test using undefined url
Browse files Browse the repository at this point in the history
  • Loading branch information
cronopio committed Dec 18, 2013
1 parent 9e74a63 commit c4d56a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib-http-proxy-common-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ describe('lib/http-proxy/common.js', function () {

it('should set the agent to false if none is given', function () {
var outgoing = {};
common.setupOutgoing(outgoing, {target: {},}, {});
common.setupOutgoing(outgoing, {target:
'http://localhost'
}, { url: '/' });
expect(outgoing.agent).to.eql(false);
});

Expand Down

0 comments on commit c4d56a5

Please sign in to comment.