test(devfront): update unit tests to match refined RBAC model for privileged roles
This commit is contained in:
1 parent
322fd13d67
commit
a125b1d7ae
2 files changed
+9
-6
No files matched your search
@@ -6,8 +6,8 @@ describe("normalizeRole", () => {
|
||||
expect(normalizeRole("tenant_member")).toBe("user");
|
||||
expect(normalizeRole("admin")).toBe("user");
|
||||
expect(normalizeRole("superadmin")).toBe("super_admin");
|
||||
expect(normalizeRole("tenantadmin")).toBe("user");
|
||||
expect(normalizeRole("rpadmin")).toBe("user");
|
||||
expect(normalizeRole("tenantadmin")).toBe("tenant_admin");
|
||||
expect(normalizeRole("rpadmin")).toBe("rp_admin");
|
||||
});
|
||||
|
||||
it("returns 'user' for unknown string values and empty string for non-strings", () => {
|
||||
|
||||
Reference in new issue
Block a user