




















@@ -557,8 +557,8 @@ describe("getHealthSnapshot", () => {
557557expect(telegram.probe?.ok).toBe(true);
558558expect(telegram.probe?.bot?.username).toBe("bot");
559559expect(telegram.probe?.webhook?.url).toMatch(/^https:/);
560-expect(calls.some((call) => call.includes("/getMe"))).toBe(true);
561-expect(calls.some((call) => call.includes("/getWebhookInfo"))).toBe(true);
560+expect(calls.join("\n")).toContain("/getMe");
561+expect(calls.join("\n")).toContain("/getWebhookInfo");
562562563563const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-health-"));
564564const tokenFile = path.join(tmpDir, "telegram-token");
@@ -570,7 +570,7 @@ describe("getHealthSnapshot", () => {
570570);
571571expect(tokenFileProbe.telegram.configured).toBe(true);
572572expect(tokenFileProbe.telegram.probe?.ok).toBe(true);
573-expect(tokenFileProbe.calls.some((call) => call.includes("bott-file/getMe"))).toBe(true);
573+expect(tokenFileProbe.calls.join("\n")).toContain("bott-file/getMe");
574574} finally {
575575fs.rmSync(tmpDir, { recursive: true, force: true });
576576}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。