Skip to content

Commit

Permalink
passing test for full url bouncing
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jan 15, 2012
1 parent 27a2ab3 commit d11a6eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/bounce_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ test('bounce opts.path with a non-http abbreviated url', function (t) {
});
});

test('bounce opts.path with a full url', function (t) {
testUrl(t, function (port, req, bounce) {
bounce('http://localhost:' + port + '/rewritten');
});
});

function testUrl (t, bouncer) {
t.plan(4);

Expand Down

0 comments on commit d11a6eb

Please sign in to comment.