feat(server): more e2e test cases

This commit is contained in:
Ahmed Bouhuolia
2026-01-10 01:01:41 +02:00
parent 5ace03ea99
commit 16f1d57279
33 changed files with 1711 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
import * as request from 'supertest';
import { app, AuthorizationHeader, orgainzationId } from './init-app-test';
describe('Payment Services (e2e)', () => {
it('/payment-services (GET)', () => {
return request(app.getHttpServer())
.get('/payment-services')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.expect(200);
});
it('/payment-services/state (GET)', () => {
return request(app.getHttpServer())
.get('/payment-services/state')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.expect(200);
});
it('/payment-services/:paymentServiceId (GET)', () => {
return request(app.getHttpServer())
.get('/payment-services/1')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.expect(200);
});
});