diff --git a/api/apps/api/test/projects/crud/projects.e2e-spec.ts b/api/apps/api/test/projects/crud/projects.e2e-spec.ts index 2bd4e3538f..a55082e750 100644 --- a/api/apps/api/test/projects/crud/projects.e2e-spec.ts +++ b/api/apps/api/test/projects/crud/projects.e2e-spec.ts @@ -29,14 +29,18 @@ describe('ProjectsModule (e2e)', () => { it('should succeed when giving minimum required data', async () => { const userToken = await api.utils.createWorkingUser(); - const { body: organizationResponse } = await api.requests.organizations + const { + body: organizationResponse, + } = await api.requests.organizations .createOrganization(userToken) .expect(HttpStatus.CREATED); const projectData = { ...E2E_CONFIG.projects.valid.minimal(), organizationId: organizationResponse.data.id, }; - const { body: projectResponse } = await api.requests.projects + const { + body: projectResponse, + } = await api.requests.projects .createProject(userToken, projectData) .expect(HttpStatus.CREATED); @@ -153,7 +157,9 @@ describe('ProjectsModule (e2e)', () => { const { body: userProjects } = await api.requests.projects .listProjects(userToken) .expect(HttpStatus.OK); - const { body: anotherUserProjects } = await api.requests.projects + const { + body: anotherUserProjects, + } = await api.requests.projects .listProjects(anotherUserToken) .expect(HttpStatus.OK); @@ -179,7 +185,9 @@ describe('ProjectsModule (e2e)', () => { description: 'cannotBeFound', }); - const { body: projectsResponse } = await api.requests.projects + const { + body: projectsResponse, + } = await api.requests.projects .listProjects(userToken) .expect(HttpStatus.OK); @@ -207,7 +215,9 @@ describe('ProjectsModule (e2e)', () => { const userToken = await api.utils.createWorkingUser(); await api.utils.createWorkingProjectWithScenario(userToken); - const { body: projectsResponse } = await api.requests.projects + const { + body: projectsResponse, + } = await api.requests.projects .listProjects(userToken, { include: ['scenarios'] }) .expect(HttpStatus.OK); @@ -224,7 +234,9 @@ describe('ProjectsModule (e2e)', () => { await api.requests.projects .deleteProject(userToken, data.id) .expect(HttpStatus.OK); - const { body: projectsResponse } = await api.requests.projects + const { + body: projectsResponse, + } = await api.requests.projects .listProjects(userToken) .expect(HttpStatus.OK); @@ -233,13 +245,16 @@ describe('ProjectsModule (e2e)', () => { it('should succeed with a project with scenarios', async () => { const userToken = await api.utils.createWorkingUser(); - const { data } = - await api.utils.createWorkingProjectWithScenario(userToken); + const { data } = await api.utils.createWorkingProjectWithScenario( + userToken, + ); await api.requests.projects .deleteProject(userToken, data.id) .expect(HttpStatus.OK); - const { body: projectsResponse } = await api.requests.projects + const { + body: projectsResponse, + } = await api.requests.projects .listProjects(userToken) .expect(HttpStatus.OK); @@ -251,13 +266,16 @@ describe('ProjectsModule (e2e)', () => { const anotherUser = await api.utils.createWorkingUser({ email: 'another@email.com', }); - const { data } = - await api.utils.createWorkingProjectWithScenario(userToken); + const { data } = await api.utils.createWorkingProjectWithScenario( + userToken, + ); await api.requests.projects .deleteProject(anotherUser, data.id) .expect(HttpStatus.FORBIDDEN); - const { body: projectsResponse } = await api.requests.projects + const { + body: projectsResponse, + } = await api.requests.projects .listProjects(userToken) .expect(HttpStatus.OK);