2 var express = require('..');
3 var request = require('supertest');
5 describe('res', function(){
6 describe('.get(field)', function(){
7 it('should get the response header field', function (done) {
10 app.use(function (req, res) {
11 res.setHeader('Content-Type', 'text/x-foo');
12 res.send(res.get('Content-Type'));
17 .expect(200, 'text/x-foo', done);