From d10d2190615ef2b88d1181dd159c5f74197bc15b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 7 Oct 2026 01:46:21 +0800 Subject: [PATCH] =?UTF-8?q?test(web):=20=E5=A4=B4=E5=9B=BE=E5=BE=BD?= =?UTF-8?q?=E6=A0=87=E7=94=A8=E4=BE=8B=E6=8C=89=20StatusBadge=20=E7=9A=84?= =?UTF-8?q?=20props=20=E7=B1=BB=E5=9E=8B=E4=BC=A0=20children?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei --- apps/web/app/components/media/media-detail.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/components/media/media-detail.test.ts b/apps/web/app/components/media/media-detail.test.ts index 47c5b05a..3650e948 100644 --- a/apps/web/app/components/media/media-detail.test.ts +++ b/apps/web/app/components/media/media-detail.test.ts @@ -63,7 +63,7 @@ describe("MediaHero 头图", () => { it("状态徽标(正常 / Emby 等)与播出状态在同一行", () => { const html = render({ facts: facts(), - badges: createElement(StatusBadge, { tone: "success" }, "正常"), + badges: StatusBadge({ tone: "success", children: "正常" }), }); const row = slotHtml(html, "media-hero-badges"); expect(row).toContain("连载中");