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.

528 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { makeUi } from "../render/ui.js";
import { renderTaskDeleted } from "./render-task-deleted.js";

describe("renderTaskDeleted", () => {
  it("prints a one-line result", () => {
    const ui = makeUi({
      color: 0,
      unicode: true,
      hyperlinks: false,
      animate: false,
      columns: 80,
    });
    expect(
      renderTaskDeleted(ui, { label: "KAN-12", title: "Fix login" }),
    ).toEqual(["", "  ✓ Deleted KAN-12 · Fix login", ""]);
  });
});