




















@@ -51,6 +51,7 @@ describe("status-all report tables", () => {
5151});
52525353it("builds colored detail table sections", () => {
54+const renderTable = ({ rows }: { rows: unknown[] }) => `rows:${rows.length}`;
5455const [section] = buildStatusChannelDetailSections({
5556details: [
5657{
@@ -60,7 +61,7 @@ describe("status-all report tables", () => {
6061},
6162],
6263width: 120,
63-renderTable: ({ rows }) => `rows:${rows.length}`,
64+ renderTable,
6465ok: (value) => `ok(${value})`,
6566warn: (value) => `warn(${value})`,
6667});
@@ -69,7 +70,7 @@ describe("status-all report tables", () => {
6970kind: "table",
7071title: "Channel detail",
7172width: 120,
72-renderTable: expect.any(Function),
73+ renderTable,
7374columns: [
7475{ key: "Channel", header: "Channel", flex: false, minWidth: 10 },
7576{ key: "Status", header: "Status", flex: false, minWidth: 10 },
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。