koa-lite/test/response/remove.js
2015-10-13 09:23:57 +02:00

13 lines
278 B
JavaScript

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