res.location.js
This file
Path
test/res.location.js
22 lines · 487 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6bc7574 point at it.
docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 1–22why, one step back12var express = require('../')3 , request = require('supertest');45describe('res', function(){6 describe('.location(url)', function(){7 it('should set the header', function(done){8 var app = express();910 app.use(function(req, res){11 res.location('http://google.com').end();12 });1314 request(app)15 .get('/')16 .end(function(err, res){17 res.headers.should.have.property('location', 'http://google.com');18 done();19 })20 })21 })22})