mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 09:14:58 +03:00
refactor(server): split api and jobs into separate e2e suites (#6307)
* refactor: domain and infra modules * refactor(server): e2e tests
This commit is contained in:
10
server/e2e/api/client/partner-api.ts
Normal file
10
server/e2e/api/client/partner-api.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user