Test fix.

This commit is contained in:
mike12345567 2024-10-23 15:30:46 +01:00
parent e28357c451
commit 8ebb02eb79
1 changed files with 1 additions and 3 deletions

View File

@ -232,9 +232,7 @@ describe("/roles", () => {
const customRoleFetched = res.find(r => r._id === customRole.name)
expect(customRoleFetched).toBeDefined()
expect(customRoleFetched!.inherits).toEqual(BUILTIN_ROLE_IDS.BASIC)
expect(customRoleFetched!.permissionId).toEqual(
BuiltinPermissionID.READ_ONLY
)
expect(customRoleFetched!.permissionId).toEqual(BuiltinPermissionID.WRITE)
})
it("should be able to get the role with a permission added", async () => {