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.

664 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { keyConflictHint } from "./key-conflict.js";

describe("keyConflictHint", () => {
  it("suggests a free key for create and edit", () => {
    expect(keyConflictHint("KANE", undefined)).toBe(
      "Pick another key, for example --key KANE.",
    );
    expect(keyConflictHint(undefined, undefined)).toBe(
      "Pick another key with --key.",
    );
  });

  it("points at kaneo project edit when the key has to change first", () => {
    expect(keyConflictHint("KAN2", "kaneo project edit p1")).toBe(
      "Give it another key first, for example kaneo project edit p1 --key KAN2.",
    );
  });
});