feat: 建立 DOCX 主题映射引擎
This commit is contained in:
@@ -209,4 +209,26 @@ describe("DOCX 主题样式协议", () => {
|
||||
})
|
||||
).toThrow();
|
||||
});
|
||||
|
||||
it("接受自动映射模式和兼容预设", () => {
|
||||
expect(
|
||||
docxThemeStyleSchema.parse({
|
||||
mode: "auto-with-overrides",
|
||||
basePreset: "technical",
|
||||
overrides: {
|
||||
table: {
|
||||
headerBackgroundColor: "#f6f8fa"
|
||||
}
|
||||
}
|
||||
})
|
||||
).toMatchObject({
|
||||
mode: "auto-with-overrides",
|
||||
basePreset: "technical",
|
||||
overrides: {
|
||||
table: {
|
||||
headerBackgroundColor: "#f6f8fa"
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user