0b1b49cb8a
closes #508
13 lines
264 B
JavaScript
13 lines
264 B
JavaScript
|
|
'use strict';
|
|
|
|
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({});
|
|
})
|
|
})
|