res.get.js
This file
Path
test/res.get.js
14 lines · 424 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 2e68ddb point at it.
expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb
lines 1–14why, one step back12var express = require('../')3 , res = express.response;45describe('res', function(){6 describe('.get(field)', function(){7 it('should get the response header field', function(){8 res.setHeader('Content-Type', 'text/x-foo');9 res.get('Content-Type').should.equal('text/x-foo');10 res.get('Content-type').should.equal('text/x-foo');11 res.get('content-type').should.equal('text/x-foo');12 })13 })14})