fix(cv): restore distinct frameless previews
This commit is contained in:
@@ -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" }],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user