From 375c4de7cc3b10a126134a1b07d501cfc31bcf57 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 18:25:17 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=A1=A5=E9=BD=90=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A0=87=E9=A2=98=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/lib/http.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/http.test.ts b/tests/lib/http.test.ts index e059c4e..0627ebf 100644 --- a/tests/lib/http.test.ts +++ b/tests/lib/http.test.ts @@ -135,11 +135,12 @@ describe('后端 API 契约', () => { ) vi.stubGlobal('fetch', fetcher) expect(await projectsApi.list()).toEqual([{ id: 'p1' }]) - expect(await projectsApi.create({ topic: '故事', style: '悬疑', episodeCount: 3 })).toEqual({ + expect(await projectsApi.create({ title: '测试项目', topic: '故事', style: '悬疑', episodeCount: 3 })).toEqual({ projectId: 'p2', status: 'generating' }) expect(JSON.parse(fetcher.mock.calls[1]![1].body as string)).toEqual({ + title: '测试项目', topic: '故事', style: '悬疑', episodeCount: 3