gantt-style.test.ts 485 B

12345678910111213
  1. import { describe, expect, it } from "vitest";
  2. import { GANTT_BAR_MIN_WIDTH_PX, ganttItemStyle } from "../src/gantt-style.js";
  3. describe("Gantt item styling", () => {
  4. it("keeps range bars wide enough for very fast tool calls", () => {
  5. expect(GANTT_BAR_MIN_WIDTH_PX).toBe(18);
  6. expect(ganttItemStyle("range")).toBe("min-width: 18px;");
  7. });
  8. it("leaves point markers governed by vis-timeline defaults", () => {
  9. expect(ganttItemStyle("point")).toBeUndefined();
  10. });
  11. });