res.get.js
This file
Path
test/res.get.js
21 lines · 472 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 2027b87 point at it.
fix(deps): cookie@0.7.0Josh Bukerbefore adoption2027b87
lines 1–21why, one step back1'use strict'23var express = require('..');4var request = require('supertest');56describe('res', function(){7 describe('.get(field)', function(){8 it('should get the response header field', function (done) {9 var app = express();1011 app.use(function (req, res) {12 res.setHeader('Content-Type', 'text/x-foo');13 res.send(res.get('Content-Type'));14 });1516 request(app)17 .get('/')18 .expect(200, 'text/x-foo', done);19 })20 })21})