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.

446 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { availableSlug } from "./available-slug";

describe("availableSlug", () => {
  it("keeps a free slug", () => {
    expect(availableSlug("in-review", new Set(["to-do"]))).toBe("in-review");
  });

  it("suffixes a taken slug with the first free number", () => {
    expect(
      availableSlug("in-review", new Set(["in-review", "in-review-2"])),
    ).toBe("in-review-3");
  });
});