Tweak tests
This commit is contained in:
parent
da656f54fe
commit
fe8853580e
|
@ -15,8 +15,11 @@ describe("/permission", () => {
|
||||||
|
|
||||||
afterAll(setup.afterAll)
|
afterAll(setup.afterAll)
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
await config.init()
|
await config.init()
|
||||||
|
})
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
table = await config.createTable()
|
table = await config.createTable()
|
||||||
row = await config.createRow()
|
row = await config.createRow()
|
||||||
perms = await config.addPermission(STD_ROLE_ID, table._id)
|
perms = await config.addPermission(STD_ROLE_ID, table._id)
|
||||||
|
|
|
@ -10,7 +10,7 @@ describe("/screens", () => {
|
||||||
|
|
||||||
afterAll(setup.afterAll)
|
afterAll(setup.afterAll)
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
await config.init()
|
await config.init()
|
||||||
screen = await config.createScreen()
|
screen = await config.createScreen()
|
||||||
})
|
})
|
||||||
|
|
|
@ -10,7 +10,6 @@ describe("test the link controller", () => {
|
||||||
let table1, table2, appId
|
let table1, table2, appId
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
config.modeCloud()
|
|
||||||
const app = await config.init()
|
const app = await config.init()
|
||||||
appId = app.appId
|
appId = app.appId
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue