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