From 23088c036e977b87001f87cefc91495b04295037 Mon Sep 17 00:00:00 2001 From: adrinr Date: Tue, 28 Mar 2023 15:19:26 +0100 Subject: [PATCH] Replace beforeEach for before All --- packages/worker/src/api/routes/global/tests/scim.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/worker/src/api/routes/global/tests/scim.spec.ts b/packages/worker/src/api/routes/global/tests/scim.spec.ts index 92d3e7378f..1e88fdd39b 100644 --- a/packages/worker/src/api/routes/global/tests/scim.spec.ts +++ b/packages/worker/src/api/routes/global/tests/scim.spec.ts @@ -265,7 +265,7 @@ describe("scim", () => { describe("GET /api/global/scim/v2/users/:id", () => { let user: ScimUserResponse - beforeEach(async () => { + beforeAll(async () => { const body = structures.scim.createUserRequest() user = await config.api.scimUsersAPI.post({ body }) @@ -569,7 +569,7 @@ describe("scim", () => { describe("GET /api/global/scim/v2/groups/:id", () => { let group: ScimGroupResponse - beforeEach(async () => { + beforeAll(async () => { const body = structures.scim.createGroupRequest() group = await config.api.scimGroupsAPI.post({ body }) @@ -600,7 +600,7 @@ describe("scim", () => { let group: ScimGroupResponse - beforeEach(async () => { + beforeAll(async () => { const body = structures.scim.createGroupRequest() group = await config.api.scimGroupsAPI.post({ body })