테마 적용
CI / test (push) Failing after 5m22s
CI / e2e (push) Has been skipped
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-12-09 18:53:21 +09:00
parent 9d8c4538c7
commit 676e58cad7
71 changed files with 3394 additions and 498 deletions
+16
View File
@@ -259,6 +259,22 @@ describe("/api/export", () => {
expect(htmlColors).toContain('style="background-color:#222222;margin:0;padding:0;"');
});
it("bodyBgColorHex 가 빈 문자열이면 buildStaticHtml 의 body style 에 background-color 가 포함되지 않아야 한다", () => {
const blocks: Block[] = [];
const projectConfig: ProjectConfig = {
title: "배경색 비어 있음 테스트",
slug: "body-bg-empty-test",
canvasPreset: "full",
canvasBgColorHex: "#0f172a",
bodyBgColorHex: "",
} as ProjectConfig;
const html = buildStaticHtml(blocks, projectConfig);
// body style 에 background-color 가 없어야 한다.
expect(html).toContain('<body style="margin:0;padding:0;"');
});
it("projectConfig.headHtml / trackingScript 가 head 와 body 에 반영되어야 한다", async () => {
const blocks: Block[] = [];