Replace beforeEach for before All
This commit is contained in:
parent
31f94f6c3c
commit
23088c036e
|
@ -265,7 +265,7 @@ describe("scim", () => {
|
||||||
describe("GET /api/global/scim/v2/users/:id", () => {
|
describe("GET /api/global/scim/v2/users/:id", () => {
|
||||||
let user: ScimUserResponse
|
let user: ScimUserResponse
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
const body = structures.scim.createUserRequest()
|
const body = structures.scim.createUserRequest()
|
||||||
|
|
||||||
user = await config.api.scimUsersAPI.post({ body })
|
user = await config.api.scimUsersAPI.post({ body })
|
||||||
|
@ -569,7 +569,7 @@ describe("scim", () => {
|
||||||
describe("GET /api/global/scim/v2/groups/:id", () => {
|
describe("GET /api/global/scim/v2/groups/:id", () => {
|
||||||
let group: ScimGroupResponse
|
let group: ScimGroupResponse
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
const body = structures.scim.createGroupRequest()
|
const body = structures.scim.createGroupRequest()
|
||||||
|
|
||||||
group = await config.api.scimGroupsAPI.post({ body })
|
group = await config.api.scimGroupsAPI.post({ body })
|
||||||
|
@ -600,7 +600,7 @@ describe("scim", () => {
|
||||||
|
|
||||||
let group: ScimGroupResponse
|
let group: ScimGroupResponse
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
const body = structures.scim.createGroupRequest()
|
const body = structures.scim.createGroupRequest()
|
||||||
|
|
||||||
group = await config.api.scimGroupsAPI.post({ body })
|
group = await config.api.scimGroupsAPI.post({ body })
|
||||||
|
|
Loading…
Reference in New Issue