Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

415 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { getPrimaryInstanceRole } from "./get-primary-instance-role";

describe("getPrimaryInstanceRole", () => {
  it.each([
    ["user,admin", "admin"],
    ["user,support", "support"],
    ["user", "user"],
    [null, "user"],
    ["", "user"],
  ])("reads %s as %s", (role, expected) => {
    expect(getPrimaryInstanceRole(role)).toBe(expected);
  });
});