This commit is contained in:
Adria Navarro 2024-03-08 12:16:33 +01:00
parent 79e02373d9
commit ca65e1d36b
2 changed files with 2 additions and 9 deletions

@ -1 +1 @@
Subproject commit f8529e7a1c37902e782469b4e19d70d63d603320 Subproject commit 70b9f4b263cf0ed9d7f494c895a836caff77bad8

View File

@ -13,17 +13,11 @@ import { events } from "@budibase/backend-core"
jest.setTimeout(30000) jest.setTimeout(30000)
describe("scim", () => { describe("scim", () => {
beforeAll(async () => {
tk.freeze(mocks.date.MOCK_DATE)
mocks.licenses.useScimIntegration()
await config.setSCIMConfig(true)
})
beforeEach(async () => { beforeEach(async () => {
jest.resetAllMocks() jest.resetAllMocks()
tk.freeze(mocks.date.MOCK_DATE) tk.freeze(mocks.date.MOCK_DATE)
mocks.licenses.useScimIntegration() mocks.licenses.useScimIntegration()
mocks.licenses.useGroups()
await config.setSCIMConfig(true) await config.setSCIMConfig(true)
}) })
@ -718,7 +712,6 @@ describe("scim", () => {
}) })
it("can fetch groups even if internal groups exist", async () => { it("can fetch groups even if internal groups exist", async () => {
mocks.licenses.useGroups()
await config.api.groups.saveGroup(structures.userGroups.userGroup()) await config.api.groups.saveGroup(structures.userGroups.userGroup())
await config.api.groups.saveGroup(structures.userGroups.userGroup()) await config.api.groups.saveGroup(structures.userGroups.userGroup())