From c4d56a5faf1e89cdeb911f0ece0efe065eb58c45 Mon Sep 17 00:00:00 2001 From: cronopio Date: Wed, 18 Dec 2013 11:50:49 -0500 Subject: [PATCH] [tests] fix test using undefined url --- test/lib-http-proxy-common-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/lib-http-proxy-common-test.js b/test/lib-http-proxy-common-test.js index 2f9fa1e..7398a0e 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); });