Skip to content

Commit

Permalink
Add test for #747
Browse files Browse the repository at this point in the history
  • Loading branch information
damonmcminn committed Apr 1, 2015
1 parent 87a92a7 commit d145152
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/lib-http-proxy-common-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit d145152

Please sign in to comment.