fix: e2e test cases

This commit is contained in:
Ahmed Bouhuolia
2025-01-11 18:03:59 +02:00
parent 7e82080cb7
commit ddaea20d16
32 changed files with 503 additions and 248 deletions

View File

@@ -1,5 +1,5 @@
import * as request from 'supertest';
import { app } from './init-app-test';
import { app, orgainzationId } from './init-app-test';
const makeSettingsRequest = () => ({
options: [
@@ -20,7 +20,7 @@ describe('Settings (e2e)', () => {
it('/settings (PUT)', () => {
return request(app.getHttpServer())
.put('/settings')
.set('organization-id', '4064541lv40nhca')
.set('organization-id', orgainzationId)
.send(makeSettingsRequest())
.expect(200);
});
@@ -28,7 +28,7 @@ describe('Settings (e2e)', () => {
it('/settings (GET)', () => {
return request(app.getHttpServer())
.get('/settings')
.set('organization-id', '4064541lv40nhca')
.set('organization-id', orgainzationId)
.expect(200);
});
});