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.

651 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { makeUi } from "../render/ui.js";
import { renderExported } from "./render-exported.js";

const ui = makeUi({
  color: 0,
  unicode: true,
  hyperlinks: false,
  animate: false,
  columns: 80,
});

describe("renderExported", () => {
  it("names the project, the count and the file", () => {
    expect(
      renderExported(ui, {
        file: "kan.json",
        tasks: 15,
        project: { name: "Kaneo Web", key: "KAN", url: "https://kaneo.test/p" },
      }),
    ).toEqual([
      "",
      "  ✓ Exported 15 tasks from Kaneo Web · KAN → kan.json",
      "",
    ]);
  });
});