mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			428 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			428 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Validate status 2xx
 | |
| pm.test(
 | |
|   "[DELETE]::/api_keys/:merchant_id/:api-key - Status code is 2xx",
 | |
|   function () {
 | |
|     pm.response.to.be.success;
 | |
|   },
 | |
| );
 | |
| 
 | |
| // Validate if response header has matching content-type
 | |
| pm.test(
 | |
|   "[DELETE]::/api_keys/:merchant_id/:api-key - Content-Type is application/json",
 | |
|   function () {
 | |
|     pm.expect(pm.response.headers.get("Content-Type")).to.include(
 | |
|       "application/json",
 | |
|     );
 | |
|   },
 | |
| );
 | 
