mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			378 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			378 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { PartnerResponseDto } from '@app/domain';
 | |
| import request from 'supertest';
 | |
| 
 | |
| export const partnerApi = {
 | |
|   create: async (server: any, accessToken: string, id: string) => {
 | |
|     const { status, body } = await request(server).post(`/partner/${id}`).set('Authorization', `Bearer ${accessToken}`);
 | |
|     expect(status).toBe(201);
 | |
|     return body as PartnerResponseDto;
 | |
|   },
 | |
| };
 |