Skip to content

Commit f9540de

Browse files
committed
Fixed tests depending on ignorePath
1 parent f2093b5 commit f9540de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib-http-proxy-common-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ describe('lib/http-proxy/common.js', function () {
250250
ignorePath: true
251251
}, { url: '/more/crazy/pathness' });
252252

253-
expect(outgoing.path).to.eql('/some/crazy/path/whoooo/');
253+
expect(outgoing.path).to.eql('/some/crazy/path/whoooo');
254254
});
255255

256256
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 () {
262262
prependPath: false
263263
}, { url: '/more/crazy/pathness' });
264264

265-
expect(outgoing.path).to.eql('/');
265+
expect(outgoing.path).to.eql('');
266266
});
267267
});
268268

0 commit comments

Comments
 (0)