import { describe, expect, it } from "vitest";
import { run } from "./listRolePermissionsByRole";

describe("listRolePermissionsByRole", () => {
  it("returns all permissions assigned to role", () => {
    expect(run).toBeTypeOf("function");
  });

  it("returns empty array when role has no permissions", () => {
    expect(run).toBeTypeOf("function");
  });

  it("returns error when roleId does not exist", () => {
    expect(run).toBeTypeOf("function");
  });

  it("returns multiple permissions when role has multiple permission assignments", () => {
    expect(run).toBeTypeOf("function");
  });
});
