From aab10f5e2da8b20f1dba63f331d6bb5d94b3adb7 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 19:49:15 +0100 Subject: [PATCH] test: verify health formatter lines --- src/commands/health.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/health.test.ts b/src/commands/health.test.ts index 356ebca1149..10e16167cd7 100644 --- a/src/commands/health.test.ts +++ b/src/commands/health.test.ts @@ -190,9 +190,9 @@ describe("healthCommand", () => { }); const lines = formatHealthChannelLines(summary, { accountMode: "all" }); - expect(lines).toContain( + expect(lines).toStrictEqual([ "Telegram: ok (@pinguini_ugi_bot:main:196ms, @flurry_ugi_bot:flurry:190ms, @poe_ugi_bot:poe:188ms)", - ); + ]); }); it("formats statusState without inferring from linked", () => { @@ -209,7 +209,7 @@ describe("healthCommand", () => { }); const lines = formatHealthChannelLines(summary, { accountMode: "default" }); - expect(lines).toContain("WhatsApp: auth stabilizing"); + expect(lines).toStrictEqual(["WhatsApp: auth stabilizing"]); }); });