QA pass: layout, create-flow, and About books #68

Merged
an.di merged 38 commits from adilallo/fix/CR-129-create-rule-button into main 2026-08-26 15:46:56 +00:00
2 changed files with 18 additions and 0 deletions
Showing only changes of commit 75c5ae61b0 - Show all commits
Binary file not shown.
+18
View File
@@ -0,0 +1,18 @@
import { existsSync, readFileSync } from "node:fs";
import { join } from "node:path";
import { describe, expect, it } from "vitest";
import { getAssetPath, governanceBookletPath } from "../../../lib/assetUtils";
describe("governance booklet", () => {
it("ships a PDF at the About Book download path", () => {
const relative = governanceBookletPath();
expect(relative).toBe("assets/marketing/governance-booklet.pdf");
expect(getAssetPath(relative)).toBe("/assets/marketing/governance-booklet.pdf");
const abs = join(process.cwd(), "public", relative);
expect(existsSync(abs)).toBe(true);
const header = readFileSync(abs).subarray(0, 5).toString("latin1");
expect(header).toBe("%PDF-");
});
});