Point the About book download at the current Structure Before Crisis PDF instead of the 2021 booklet.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-19 18:45:22 -06:00
co-authored by Cursor
parent 9e698e7ab6
commit 75c5ae61b0
2 changed files with 18 additions and 0 deletions
+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-");
});
});