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.

686 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { integrationTriggerLabel } from "./integration-trigger-label";

describe("integrationTriggerLabel", () => {
  it.each([
    ["disconnected", false, "settings:projectIntegrations.connect"],
    ["disconnected", true, "common:actions.cancel"],
    ["connected", false, "settings:projectIntegrations.configure"],
    ["paused", true, "settings:projectIntegrations.done"],
    ["unavailable", true, "settings:projectIntegrations.done"],
    ["loading", false, "common:empty.loading"],
  ] as const)("labels %s (open: %s) as %s", (state, open, label) => {
    expect(integrationTriggerLabel(state, open)).toBe(label);
  });
});