1
0
Fork 0
mirror of synced 2024-08-15 01:51:33 +12:00

Tweak tests

This commit is contained in:
adrinr 2023-02-03 18:40:25 +00:00
parent da656f54fe
commit fe8853580e
3 changed files with 5 additions and 3 deletions

View file

@ -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)

View file

@ -10,7 +10,7 @@ describe("/screens", () => {
afterAll(setup.afterAll)
beforeEach(async () => {
beforeAll(async () => {
await config.init()
screen = await config.createScreen()
})

View file

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