Fixing test case.
This commit is contained in:
parent
b2e718504c
commit
3b597f6405
|
@ -291,6 +291,8 @@ describe("/permission", () => {
|
|||
describe("multi-inheritance permissions", () => {
|
||||
let table1: Table, table2: Table, role1: Role, role2: Role
|
||||
beforeEach(async () => {
|
||||
// create new app
|
||||
await config.init()
|
||||
table1 = await config.createTable()
|
||||
table2 = await config.createTable()
|
||||
await config.api.row.save(table1._id!, {
|
||||
|
@ -301,7 +303,7 @@ describe("/permission", () => {
|
|||
})
|
||||
role1 = await config.api.roles.save(
|
||||
{
|
||||
name: "role1",
|
||||
name: "test_1",
|
||||
permissionId: PermissionLevel.WRITE,
|
||||
inherits: BUILTIN_ROLE_IDS.BASIC,
|
||||
},
|
||||
|
@ -309,7 +311,7 @@ describe("/permission", () => {
|
|||
)
|
||||
role2 = await config.api.roles.save(
|
||||
{
|
||||
name: "role2",
|
||||
name: "test_2",
|
||||
permissionId: PermissionLevel.WRITE,
|
||||
inherits: BUILTIN_ROLE_IDS.BASIC,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue