fix(cv): restore distinct frameless previews
CI and Deploy / test (push) Failing after 7m53s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-09-01 16:37:51 +02:00
parent 4c384b76ad
commit e912b72110
5 changed files with 46 additions and 45 deletions
+9 -3
View File
@@ -63,12 +63,12 @@ describe("CV language compatibility", () => {
test("fits the physical page to the available preview width", () => {
expect(getCvPreviewFitZoom(500, 800)).toBeCloseTo(0.595);
expect(getCvPreviewFitZoom(1200, 800)).toBe(1);
expect(getCvPreviewFitZoom(120, 800)).toBe(0.32);
expect(getCvPreviewFitZoom(120, 800, 24, 0.2)).toBe(0.2);
});
});
describe("CV template selection", () => {
test("restores the selected template structure without discarding user content or design choices", () => {
test("restores the selected template visual defaults without discarding user content", () => {
const settings = {
themeId: "minimal",
layout: "single" as const,
@@ -77,6 +77,9 @@ describe("CV template selection", () => {
sidebarWidthMm: 70,
sidebarSections: ["skills"],
accentColor: "#123456",
headingFont: "Georgia, 'Times New Roman', serif",
pageMarginMm: 9,
skillsStyle: "text" as const,
showPhoto: false,
showPageNumbers: false,
showIcons: true,
@@ -92,7 +95,10 @@ describe("CV template selection", () => {
headingStyle: null,
sidebarWidthMm: null,
sidebarSections: null,
accentColor: "#123456",
accentColor: null,
headingFont: null,
pageMarginMm: null,
skillsStyle: null,
sections: [{ key: "experience", title: "Career" }],
});
});