koa-lite/test/response/header.js
2013-11-13 18:41:40 -08:00

10 lines
No EOL
254 B
JavaScript

var response = require('../context').response;
describe('res.header', function(){
it('should return the response header object', function(){
var res = response();
res.set('X-Foo', 'bar');
res.header.should.eql({ 'x-foo': 'bar' });
})
})