res.get.js
This file
Path
test/res.get.js
20 lines · 459 bytes · JavaScript
Last changed by
Merge tag '3.19.1'Douglas Christopher Wilsonbefore adoption82689d6
History of this fileTake it
The walk stopped after 200 commits: lines older than 6bc7574 point at it.
docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
line 1why, one step back1Merge tag '3.19.1'Douglas Christopher Wilsonbefore adoption82689d6
lines 2–3why, one step back2var express = require('..');3var request = require('supertest');docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 4–6why, one step back45describe('res', function(){6 describe('.get(field)', function(){Merge tag '3.19.1'Douglas Christopher Wilsonbefore adoption82689d6
lines 7–17why, one step back7 it('should get the response header field', function (done) {8 var app = express();910 app.use(function (req, res) {11 res.setHeader('Content-Type', 'text/x-foo');12 res.send(res.get('Content-Type'));13 });1415 request(app)16 .get('/')17 .expect(200, 'text/x-foo', done);docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 18–20why, one step back18 })19 })20})