You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
	
		
		
			
				
				
					
						
						
						
							 | 
							
							const { test } = require('tap')
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							const Response = require('../lib/response')
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							test('multiple calls to res.destroy should not be called', (t) => {
 | 
						
						
						
						
							 | 
							
							  t.plan(1)
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  const mockReq = {}
 | 
						
						
						
						
							 | 
							
							  const res = new Response(mockReq, (err, response) => {
 | 
						
						
						
						
							 | 
							
							    t.error(err)
 | 
						
						
						
						
							 | 
							
							  })
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  res.destroy()
 | 
						
						
						
						
							 | 
							
							  res.destroy()
 | 
						
						
						
						
							 | 
							
							})
 |