mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
		
			281 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			281 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({}); | ||
|  |   }); | ||
|  | }); |