Skip to content
Myr

Update tests expectancy of location headers

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

authored by Jérémy Lal · committed by Jérémy Lal · parent b7a38af · Browse files · 2 files+7 added−7 removed
This commit

State

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

Diff stats

2 files+7 added−7 removed

  • tests:+7 added−7 removed

2 files+7 added−7 removed

modified:test/res.location.js+2 added-2 removed
modified:test/res.redirect.js+5 added-5 removed
208 unmodified lines
209 it('should preserve context when redirecting nested applications at any depth', function(done){210 request(root)211 .get('/depth1')212 .end(function(err, res){213 res.headers.should.have.property('location', '/depth1/./index');213 res.headers.should.have.property('location', '/depth1/index');214215 request(root)216 .get('/depth1/depth2')217 .end(function(err, res){218 res.headers.should.have.property('location', '/depth1/depth2/./index');218 res.headers.should.have.property('location', '/depth1/depth2/index');219220 request(root)221 .get('/depth1/depth2/depth3')222 .end(function(err, res){223 res.headers.should.have.property('location', '/depth1/depth2/depth3/./index');223 res.headers.should.have.property('location', '/depth1/depth2/depth3/index');224 done();225 })226 })227 });
2 unmodified lines
230 it('should redirect correctly for nested applications that have been remounted', function(done){231 request(root)232 .get('/depth2')233 .end(function(err, res){234 res.headers.should.have.property('location', '/depth2/./index');234 res.headers.should.have.property('location', '/depth2/index');235 request(root)236 .get('/depth3')237 .end(function(err, res){238 res.headers.should.have.property('location', '/depth3/./index');238 res.headers.should.have.property('location', '/depth3/index');239 done();240 })241 })242 })
2 unmodified lines