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.

404 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { isWorkspaceOwnerRole } from "./is-workspace-owner-role";

describe("isWorkspaceOwnerRole", () => {
  it.each([
    ["owner", true],
    ["member,owner", true],
    ["admin", false],
    ["owners", false],
    ["", false],
  ])("treats %j as owner: %s", (role, expected) => {
    expect(isWorkspaceOwnerRole(role)).toBe(expected);
  });
});