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 a10f695 point at it.
pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
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})