Fixed tests depending on ignorePath

This commit is contained in:
Torstein Thune 2016-01-13 15:24:46 +01:00
parent f2093b5313
commit f9540de7b1

View File

@ -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('');
});
});