From 098c1117744a415fbe496761de3070dd9de7ffea Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Thu, 11 Jun 2026 17:05:33 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=20PromptBuilder=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=8C=E9=A2=84=E6=9C=9F=20kind=20?= =?UTF-8?q?=E9=97=B4=E5=88=86=E9=9A=94=E7=AC=A6=E4=B8=BA=20---?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/core/prompt-builder.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/prompt-builder.test.ts b/tests/core/prompt-builder.test.ts index e21eff2..4231e25 100644 --- a/tests/core/prompt-builder.test.ts +++ b/tests/core/prompt-builder.test.ts @@ -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", () => {