mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
15 lines
424 B
JavaScript
15 lines
424 B
JavaScript
|
|
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');
|
|
})
|
|
})
|
|
})
|