




















@@ -307,16 +307,19 @@ describe("resolveChannelSetupSelectionContributions", () => {
307307selection: ["zalo"],
308308});
309309310-expect(formatChannelSelectionLine).toHaveBeenCalledWith(
311-expect.objectContaining({
312-label: "Zalo\\nBot",
313-blurb: "Setup\\nhelp",
314-docsLabel: "Docs\\nLabel",
315-selectionDocsPrefix: "Docs\\nPrefix",
316-selectionExtras: ["Extra\\nOne"],
317-}),
318-expect.any(Function),
319-);
310+expect(formatChannelSelectionLine).toHaveBeenCalledOnce();
311+const [selectionMeta, docsLink] = formatChannelSelectionLine.mock.calls[0] ?? [];
312+expect(selectionMeta).toMatchObject({
313+label: "Zalo\\nBot",
314+blurb: "Setup\\nhelp",
315+docsLabel: "Docs\\nLabel",
316+selectionDocsPrefix: "Docs\\nPrefix",
317+selectionExtras: ["Extra\\nOne"],
318+});
319+if (typeof docsLink !== "function") {
320+throw new Error("Expected docs link formatter");
321+}
322+expect(docsLink("/channels/zalo", "Docs")).toContain("https://docs.openclaw.ai/channels/zalo");
320323expect(lines).toEqual(["Zalo\\nBot — Setup\\nhelp"]);
321324});
322325});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。