Add test
This commit is contained in:
parent
d9ff01b5f0
commit
1838f75dbc
|
@ -1,6 +1,6 @@
|
|||
import { testEnv } from "../../../tests"
|
||||
const context = require("../")
|
||||
const { DEFAULT_TENANT_ID } = require("../../constants")
|
||||
import * as context from "../"
|
||||
import { DEFAULT_TENANT_ID } from "../../constants"
|
||||
|
||||
describe("context", () => {
|
||||
describe("doInTenant", () => {
|
||||
|
@ -131,4 +131,17 @@ describe("context", () => {
|
|||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe("doInScimContext", () => {
|
||||
it("returns true when set", () => {
|
||||
context.doInScimContext(() => {
|
||||
const isScim = context.isScim()
|
||||
expect(isScim).toBe(true)
|
||||
})
|
||||
})
|
||||
it("returns false when not set", () => {
|
||||
const isScim = context.isScim()
|
||||
expect(isScim).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
@ -23,4 +23,3 @@ export * from "./plugin"
|
|||
export * from "./backup"
|
||||
export * from "./environmentVariable"
|
||||
export * from "./auditLog"
|
||||
export * from "./scim"
|
||||
|
|
Loading…
Reference in New Issue