refactor(server): e2e (#6632)

This commit is contained in:
Jason Rasmussen
2024-01-24 17:24:53 -05:00
committed by GitHub
parent 4424f3cb13
commit 852effa998
43 changed files with 154 additions and 485 deletions

View 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;
},
};