Test fix.
This commit is contained in:
parent
e28357c451
commit
8ebb02eb79
|
@ -232,9 +232,7 @@ describe("/roles", () => {
|
||||||
const customRoleFetched = res.find(r => r._id === customRole.name)
|
const customRoleFetched = res.find(r => r._id === customRole.name)
|
||||||
expect(customRoleFetched).toBeDefined()
|
expect(customRoleFetched).toBeDefined()
|
||||||
expect(customRoleFetched!.inherits).toEqual(BUILTIN_ROLE_IDS.BASIC)
|
expect(customRoleFetched!.inherits).toEqual(BUILTIN_ROLE_IDS.BASIC)
|
||||||
expect(customRoleFetched!.permissionId).toEqual(
|
expect(customRoleFetched!.permissionId).toEqual(BuiltinPermissionID.WRITE)
|
||||||
BuiltinPermissionID.READ_ONLY
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should be able to get the role with a permission added", async () => {
|
it("should be able to get the role with a permission added", async () => {
|
||||||
|
|
Loading…
Reference in New Issue