Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 6bc7574 point at it.

docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574

line 1why, one step back
1

Merge tag '3.19.1'Douglas Christopher Wilsonbefore adoption82689d6

lines 2–3why, one step back
2var express = require('..');
3var request = require('supertest');

docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574

lines 4–6why, one step back
4
5describe('res', function(){6 describe('.get(field)', function(){

Merge tag '3.19.1'Douglas Christopher Wilsonbefore adoption82689d6

lines 7–17why, one step back
7 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 back
18 })
19 })20})