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

@@ -7,6 +7,7 @@ describe('Branches (e2e)', () => {
return request(app.getHttpServer())
.post('/branches')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.send({
name: faker.commerce.productName(),
code: faker.string.alpha(4),
@@ -18,6 +19,7 @@ describe('Branches (e2e)', () => {
const response = await request(app.getHttpServer())
.post('/branches')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.send({
name: faker.commerce.productName(),
code: faker.string.alpha(4),