30 lines
648 B
TypeScript
30 lines
648 B
TypeScript
import { TestConfiguration } from "../../../../tests"
|
|
|
|
describe("/api/system/environment", () => {
|
|
const config = new TestConfiguration()
|
|
|
|
beforeAll(async () => {
|
|
await config.beforeAll()
|
|
})
|
|
|
|
afterAll(async () => {
|
|
await config.afterAll()
|
|
})
|
|
|
|
afterEach(() => {
|
|
jest.clearAllMocks()
|
|
})
|
|
|
|
describe("GET /api/system/environment", () => {
|
|
it("returns the expected environment", async () => {
|
|
const env = await config.api.environment.getEnvironment()
|
|
expect(env.body).toEqual({
|
|
cloud: true,
|
|
disableAccountPortal: false,
|
|
isDev: false,
|
|
multiTenancy: true,
|
|
})
|
|
})
|
|
})
|
|
})
|