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
123456789101112131415
var express = require('../') , res = express.response;
describe('res', function(){ describe('.get(field)', function(){ it('should get the response header field', function(){ res.setHeader('Content-Type', 'text/x-foo'); res.get('Content-Type').should.equal('text/x-foo'); res.get('Content-type').should.equal('text/x-foo'); res.get('content-type').should.equal('text/x-foo'); }) })})