mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[tests] fix test using undefined url
This commit is contained in:
parent
9e74a633a7
commit
c4d56a5faf
@ -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);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user