diff --git a/test/lib-http-proxy-common-test.js b/test/lib-http-proxy-common-test.js index 2f9fa1ed8..7398a0ebe 100644 --- a/test/lib-http-proxy-common-test.js +++ b/test/lib-http-proxy-common-test.js @@ -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); });