koa-lite/test/response/remove.js
2013-11-24 05:06:35 -08:00

11 lines
249 B
JavaScript

var context = require('../context');
describe('ctx.remove(name)', function(){
it('should remove a field', function(){
var ctx = context();
ctx.set('x-foo', 'bar');
ctx.remove('x-foo');
ctx.response.header.should.eql({});
})
})