新增优化案例领域模型
This commit is contained in:
@@ -66,6 +66,22 @@ describe("domain validation", () => {
|
||||
goal: "保留原意,减少 AI 味",
|
||||
intensity: "light",
|
||||
user_instructions: "保留口语感",
|
||||
publish_target: "未指定",
|
||||
});
|
||||
});
|
||||
|
||||
it("validates human-copy publish target", () => {
|
||||
expect(
|
||||
copyOptimizationRequestSchema.parse({
|
||||
source_text: "这是一段普通文案。",
|
||||
goal: "",
|
||||
intensity: "light",
|
||||
user_instructions: "",
|
||||
publish_target: "朋友圈",
|
||||
}),
|
||||
).toMatchObject({
|
||||
goal: "保留原意,减少 AI 味",
|
||||
publish_target: "朋友圈",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user