Skip to content

Commit

Permalink
Fixed tests depending on ignorePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Torthu committed Jan 13, 2016
1 parent f2093b5 commit f9540de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib-http-proxy-common-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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('');
});
});

Expand Down

0 comments on commit f9540de

Please sign in to comment.