fix(web): 无用户行钉顶、闲置不上留白,并修会话列表 tsc 两错
This commit is contained in:
@@ -86,7 +86,10 @@ test("sidebar titles drop the chart-name prefix and only subtitle others", () =>
|
||||
archivedAt: null,
|
||||
messagesHydrated: true,
|
||||
};
|
||||
assert.equal(sessionSidebarTitle(base, library), "半年内换工作时机");
|
||||
// 原值: sessionSidebarTitle(base, library)
|
||||
// 新值: sessionSidebarTitle(base)
|
||||
// 原因: sessionSidebarTitle 只吃 session;第二参是 e4e73f56 的 TS 错,挡住 tsc / next build
|
||||
assert.equal(sessionSidebarTitle(base), "半年内换工作时机");
|
||||
assert.equal(sessionSidebarSubtitle(base, library), "9月14日 12:14");
|
||||
const other = { ...base, chartProfileId: "other-1", chartProfileName: "对方", chartProfileRole: "other" as const };
|
||||
assert.equal(sessionSidebarSubtitle(other, library), "9月14日 12:14 · 资料已删除 · 对方");
|
||||
|
||||
Reference in New Issue
Block a user