Improve link controller tests
This commit is contained in:
parent
bc09cb76f1
commit
9f8522a901
|
@ -9,10 +9,13 @@ describe("test the link controller", () => {
|
|||
let config = new TestConfig(false)
|
||||
let table1, table2, appId
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
config.modeCloud()
|
||||
const app = await config.init()
|
||||
appId = app.appId
|
||||
})
|
||||
|
||||
beforeEach(async () => {
|
||||
const { _id } = await config.createTable()
|
||||
table2 = await config.createLinkedTable(RelationshipTypes.MANY_TO_MANY, ["link", "link2"])
|
||||
// update table after creating link
|
||||
|
|
Loading…
Reference in New Issue