文案(订阅/发现/集数映射):在途改下载中、计划改下载,按钮写清动作
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
9c7ce109ea
commit
cfc9793dcd
11 files changed
+34
-34
No files matched your search
@@ -59,9 +59,9 @@ describe("订阅总览文案", () => {
|
||||
expect(seasonLabel({ mediaKind: "series", seasonNumber: 1, seasonScope: "current_season" })).toBe("S1");
|
||||
expect(seasonLabel({ mediaKind: "movie", seasonNumber: null, seasonScope: "current_season" })).toBeNull();
|
||||
});
|
||||
it("版本徽标按 洗版 → 在途 → 缺 → 已齐 判定", () => {
|
||||
it("版本徽标按 洗版 → 下载中 → 缺 → 已齐 判定", () => {
|
||||
expect(slotBadge(slot({ upgrading: true, minPri: 97, targetPri: 100, missing: 2 })).label).toBe("洗版中 97→100");
|
||||
expect(slotBadge(slot({ inflight: 2, missing: 3 }))).toEqual({ label: "在途 2", tone: "neutral" });
|
||||
expect(slotBadge(slot({ inflight: 2, missing: 3 }))).toEqual({ label: "下载中 2", tone: "neutral" });
|
||||
expect(slotBadge(slot({ missing: 3 })).tone).toBe("destructive");
|
||||
expect(slotBadge(slot({ have: 10, total: 10 }))).toEqual({ label: "已齐", tone: "success" });
|
||||
expect(slotBadge(slot({})).label).toBe("未开始");
|
||||
|
||||
Reference in new issue
Block a user