// Sibling test for c51_render_repo.ts (Layer 1, render). End-to-end // shape covered by /GIT/tdd.md/tree|blob/main e2e specs. // This pins the export surface. import { describe, test, expect } from "bun:test"; import { renderRepoTree, renderRepoBlob } from "./b51_render_repo.ts"; describe("c51_render_repo — export shape", () => { test("renderRepoTree is exported", () => { expect(typeof renderRepoTree).toBe("function"); }); test("renderRepoBlob is exported", () => { expect(typeof renderRepoBlob).toBe("function"); }); }); describe("c51_render_repo — renderRepoTree minimum behaviour", () => { test("returns a non-empty string for an empty entry list", async () => { const html = await renderRepoTree({ owner: "syntaxai", repo: "tdd.md", ref: "main", path: "", entries: [], }); expect(typeof html).toBe("string"); expect(html.length).toBeGreaterThan(0); }); });