test: 更新 PromptBuilder 测试,预期 kind 间分隔符为 ---

This commit is contained in:
2026-06-11 17:05:33 +08:00
parent 115d5b125e
commit 098c111774

View File

@@ -64,7 +64,7 @@ describe("PromptBuilder", () => {
it("空字符串段被跳过", () => {
const result = new PromptBuilder().head("# 标题").context("").prompt("内容").build();
expect(result).toBe("# 标题\n\n内容");
expect(result).toBe("# 标题\n---\n内容");
});
it("链式调用返回 this", () => {