test: 更新 PromptBuilder 测试,预期 kind 间分隔符为 ---
This commit is contained in:
@@ -64,7 +64,7 @@ describe("PromptBuilder", () => {
|
|||||||
|
|
||||||
it("空字符串段被跳过", () => {
|
it("空字符串段被跳过", () => {
|
||||||
const result = new PromptBuilder().head("# 标题").context("").prompt("内容").build();
|
const result = new PromptBuilder().head("# 标题").context("").prompt("内容").build();
|
||||||
expect(result).toBe("# 标题\n\n内容");
|
expect(result).toBe("# 标题\n---\n内容");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("链式调用返回 this", () => {
|
it("链式调用返回 this", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user