This commit is contained in:
Damon McMinn 2015-04-01 13:14:11 +01:00
parent 87a92a7280
commit d145152655

View File

@ -299,6 +299,17 @@ describe('lib/http-proxy/common.js', function () {
expect(outgoing.ciphers).eql('my-ciphers');
expect(outgoing.secureProtocol).eql('my-secure-protocol');
});
// url.parse('').path => null
it('should not pass null as last arg to #urlJoin', function(){
var outgoing = {};
common.setupOutgoing(outgoing, {target:
{ path: '' }
}, { url : '' });
expect(outgoing.path).to.be('/');
});
});
describe('#setupSocket', function () {