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

describe("listUserRolesByUser", () => {
  it("returns all roles assigned to user", () => {
    expect(run).toBeTypeOf("function");
  });

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

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

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