From f9540de7b13f41091be2dcb68d8f23be65ad3885 Mon Sep 17 00:00:00 2001 From: Torstein Thune Date: Wed, 13 Jan 2016 15:24:46 +0100 Subject: [PATCH] Fixed tests depending on ignorePath --- test/lib-http-proxy-common-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib-http-proxy-common-test.js b/test/lib-http-proxy-common-test.js index 1c5fe47c9..e118f2e61 100644 --- a/test/lib-http-proxy-common-test.js +++ b/test/lib-http-proxy-common-test.js @@ -250,7 +250,7 @@ describe('lib/http-proxy/common.js', function () { ignorePath: true }, { url: '/more/crazy/pathness' }); - expect(outgoing.path).to.eql('/some/crazy/path/whoooo/'); + expect(outgoing.path).to.eql('/some/crazy/path/whoooo'); }); it('and prependPath: false, it should ignore path of target and incoming request', function () { @@ -262,7 +262,7 @@ describe('lib/http-proxy/common.js', function () { prependPath: false }, { url: '/more/crazy/pathness' }); - expect(outgoing.path).to.eql('/'); + expect(outgoing.path).to.eql(''); }); });