mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-25 15:52:21 +10:00
fix: render cover letter exports without resume chrome
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const builderSource = readFileSync(fileURLToPath(new URL("./builder.ts", import.meta.url)), "utf8");
|
||||
|
||||
describe("cover letter DOCX layout", () => {
|
||||
it("gates resume headers for cover-letter-only documents", () => {
|
||||
expect(builderSource).toContain("shouldShowResumeHeader(data)");
|
||||
expect(builderSource).toContain('templateConfig.headerPosition === "full-width" && showHeader');
|
||||
expect(builderSource).toContain('templateConfig.headerPosition === "main-only" && showHeader');
|
||||
expect(builderSource).toContain('templateConfig.headerPosition === "sidebar-only" && showHeader');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user