[tests] fix test using undefined url

This commit is contained in:
cronopio 2013-12-18 11:50:49 -05:00
parent 9e74a633a7
commit c4d56a5faf

View File

@ -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);
});