refactor(nestjs): fix the failed e2e test cases

This commit is contained in:
Ahmed Bouhuolia
2025-04-07 22:50:11 +02:00
parent 4febc4e502
commit 6287f8b6e3
11 changed files with 49 additions and 31 deletions

View File

@@ -45,6 +45,7 @@ describe('Payment Received (e2e)', () => {
const customer = await request(app.getHttpServer())
.post('/customers')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.send({ displayName: 'Test Customer' });
customerId = customer.body.id;
@@ -96,6 +97,7 @@ describe('Payment Received (e2e)', () => {
return request(app.getHttpServer())
.delete(`/payments-received/${paymentReceivedId}`)
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.expect(200);
});