테마 적용
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user