Skip to content
Myr

misc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1cda0a9 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:test/res.redirect.js+4 added-4 removed
18 unmodified lines
19 done();20 })21 })22 23 describe('when relative from the host', function(){24 it('should construct an absolute url', function(done){23 describe('with leading /', function(){24 it('should construct host-relative urls', function(done){25 var app = express();2627 app.use(function(req, res){28 res.redirect('/login');
8 unmodified lines
37 })38 })39 })40 41 describe('when relative from the mount-point', function(){42 it('should construct an absolute url', function(done){41 describe('without leading /', function(){42 it('should construct mount-point relative urls', function(done){43 var app = express();4445 app.use(function(req, res){46 res.redirect('login');
154 unmodified lines