import { describe, it, expect } from "vitest"; import { roleGrantsEdit } from "../../src/permission.js"; describe("roleGrantsEdit (ADR-0004 monotonicity)", () => { it("READ does not grant edit", () => { expect(roleGrantsEdit("READ")).toBe(false); }); it("EDIT grants edit", () => { expect(roleGrantsEdit("EDIT")).toBe(true); }); it("MANAGE grants edit (manage ⊇ edit, spec can_mono)", () => { expect(roleGrantsEdit("MANAGE")).toBe(true); }); });