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.

623 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { resolveFeedLabels } from "./resolve-feed-labels";

describe("resolveFeedLabels", () => {
  it("keeps feed order and marks labels that no longer exist", () => {
    expect(
      resolveFeedLabels(
        ["design", "gone", "bug"],
        [
          { id: "bug", name: "Bug", color: "red" },
          { id: "design", name: "Design", color: "purple" },
        ],
      ),
    ).toEqual([
      { id: "design", name: "Design", color: "purple" },
      { id: "gone", name: null, color: "" },
      { id: "bug", name: "Bug", color: "red" },
    ]);
  });
});