test(web): 头图徽标用例按 StatusBadge 的 props 类型传 children
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
9a24086cad
commit
d10d219061
1 file changed
+1
-1
@@ -63,7 +63,7 @@ describe("MediaHero 头图", () => {
|
|||||||
it("状态徽标(正常 / Emby 等)与播出状态在同一行", () => {
|
it("状态徽标(正常 / Emby 等)与播出状态在同一行", () => {
|
||||||
const html = render({
|
const html = render({
|
||||||
facts: facts(),
|
facts: facts(),
|
||||||
badges: createElement(StatusBadge, { tone: "success" }, "正常"),
|
badges: StatusBadge({ tone: "success", children: "正常" }),
|
||||||
});
|
});
|
||||||
const row = slotHtml(html, "media-hero-badges");
|
const row = slotHtml(html, "media-hero-badges");
|
||||||
expect(row).toContain("连载中");
|
expect(row).toContain("连载中");
|
||||||
|
|||||||
Reference in new issue
Block a user