From fe40f9061d25d9046a7e051d4df76d202ec57fce Mon Sep 17 00:00:00 2001 From: Muhammed Mukhthar CM Date: Sun, 8 Mar 2026 07:58:38 +0000 Subject: [PATCH] test: fix formatting in Mattermost and daemon tests --- extensions/mattermost/src/channel.test.ts | 1 - .../mattermost/src/mattermost/client.test.ts | 1 - src/cli/daemon-cli/lifecycle.test.ts | 21 ++++++++++--------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/extensions/mattermost/src/channel.test.ts b/extensions/mattermost/src/channel.test.ts index 573e2b470c0..97314f5e13b 100644 --- a/extensions/mattermost/src/channel.test.ts +++ b/extensions/mattermost/src/channel.test.ts @@ -307,5 +307,4 @@ describe("mattermostPlugin", () => { expect(prefixContext.responsePrefix).toBe("[Account]"); }); }); - }); diff --git a/extensions/mattermost/src/mattermost/client.test.ts b/extensions/mattermost/src/mattermost/client.test.ts index 3438adc87fa..3d325dda527 100644 --- a/extensions/mattermost/src/mattermost/client.test.ts +++ b/extensions/mattermost/src/mattermost/client.test.ts @@ -120,7 +120,6 @@ describe("createMattermostClient", () => { const result = await client.request("/anything", { method: "DELETE" }); expect(result).toBeUndefined(); }); - }); // ── createMattermostPost ───────────────────────────────────────────── diff --git a/src/cli/daemon-cli/lifecycle.test.ts b/src/cli/daemon-cli/lifecycle.test.ts index f1e87fc4938..3f0ed6d531c 100644 --- a/src/cli/daemon-cli/lifecycle.test.ts +++ b/src/cli/daemon-cli/lifecycle.test.ts @@ -36,16 +36,17 @@ const renderGatewayPortHealthDiagnostics = vi.fn(() => ["diag: unhealthy port"]) const renderRestartDiagnostics = vi.fn(() => ["diag: unhealthy runtime"]); const resolveGatewayPort = vi.fn(() => 18789); const findGatewayPidsOnPortSync = vi.fn<(port: number) => number[]>(() => []); -const probeGateway = vi.fn< - (opts: { - url: string; - auth?: { token?: string; password?: string }; - timeoutMs: number; - }) => Promise<{ - ok: boolean; - configSnapshot: unknown; - }> ->(); +const probeGateway = + vi.fn< + (opts: { + url: string; + auth?: { token?: string; password?: string }; + timeoutMs: number; + }) => Promise<{ + ok: boolean; + configSnapshot: unknown; + }> + >(); const isRestartEnabled = vi.fn<(config?: { commands?: unknown }) => boolean>(() => true); const loadConfig = vi.fn(() => ({}));