mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-13 19:30:30 +00:00
29 lines
895 B
TypeScript
29 lines
895 B
TypeScript
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);
|
|
});
|
|
});
|