1
0
Fork 0
mirror of synced 2024-05-18 19:33:49 +12:00
budibase/packages/worker/src/api/routes/system/tests/environment.spec.ts
2022-11-11 15:43:41 +00:00

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,
})
})
})
})