Skip to content

Commit

Permalink
Fixing test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike12345567 committed Oct 17, 2024
1 parent b2e7185 commit 3b597f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/server/src/api/routes/tests/permissions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!, {
Expand All @@ -301,15 +303,15 @@ describe("/permission", () => {
})
role1 = await config.api.roles.save(
{
name: "role1",
name: "test_1",
permissionId: PermissionLevel.WRITE,
inherits: BUILTIN_ROLE_IDS.BASIC,
},
{ status: 200 }
)
role2 = await config.api.roles.save(
{
name: "role2",
name: "test_2",
permissionId: PermissionLevel.WRITE,
inherits: BUILTIN_ROLE_IDS.BASIC,
},
Expand Down

0 comments on commit 3b597f6

Please sign in to comment.