import { describe, it, expect } from "vitest";
import { dashboardGeneratorHandler } from "./dashboard.js";
describe("Dashboard Tools", () => {
describe("generate_dashboard", () => {
it("should generate dashboard html", async () => {
const result = await dashboardGeneratorHandler({
projectPath: "./",
outputFile: "test-dashboard.html",
});
const file = result.content[0].artifacts[0];
expect(file.content).toContain("<!DOCTYPE html>");
expect(file.content).toContain("Project Dashboard");
expect(file.content).toContain("Complexity");
});
});
});