mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Fixed tests depending on ignorePath
This commit is contained in:
parent
f2093b5313
commit
f9540de7b1
@ -250,7 +250,7 @@ describe('lib/http-proxy/common.js', function () {
|
|||||||
ignorePath: true
|
ignorePath: true
|
||||||
}, { url: '/more/crazy/pathness' });
|
}, { 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 () {
|
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
|
prependPath: false
|
||||||
}, { url: '/more/crazy/pathness' });
|
}, { url: '/more/crazy/pathness' });
|
||||||
|
|
||||||
expect(outgoing.path).to.eql('/');
|
expect(outgoing.path).to.eql('');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user