Fixing config test case.
This commit is contained in:
parent
5dfeb9b3ca
commit
79c5f01267
|
@ -13,14 +13,12 @@ describe("/api/global/configs/checklist", () => {
|
||||||
let config = setup.getConfig()
|
let config = setup.getConfig()
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await config.init(false)
|
await config.init()
|
||||||
})
|
})
|
||||||
|
|
||||||
afterAll(setup.afterAll)
|
afterAll(setup.afterAll)
|
||||||
|
|
||||||
it("should return the correct checklist status based on the state of the budibase installation", async () => {
|
it("should return the correct checklist status based on the state of the budibase installation", async () => {
|
||||||
// initially configure settings
|
|
||||||
await config.saveAdminUser()
|
|
||||||
await config.saveSmtpConfig()
|
await config.saveSmtpConfig()
|
||||||
|
|
||||||
const res = await request
|
const res = await request
|
||||||
|
|
|
@ -62,11 +62,11 @@ class TestConfiguration {
|
||||||
null,
|
null,
|
||||||
controllers.users.save
|
controllers.users.save
|
||||||
)
|
)
|
||||||
await createASession("us_uuid1", {
|
|
||||||
sessionId: "sessionid",
|
|
||||||
tenantId: TENANT_ID,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
await createASession("us_uuid1", {
|
||||||
|
sessionId: "sessionid",
|
||||||
|
tenantId: TENANT_ID,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async end() {
|
async end() {
|
||||||
|
|
Loading…
Reference in New Issue