diff --git a/extensions/line/src/channel.startup.test.ts b/extensions/line/src/channel.startup.test.ts index 5102048008..fa04e6ca6d 100644 --- a/extensions/line/src/channel.startup.test.ts +++ b/extensions/line/src/channel.startup.test.ts @@ -26,11 +26,7 @@ function createRuntime() { return { runtime, probeLineBot, monitorLineProvider }; } -function createStartAccountCtx(params: { - token: string; - secret: string; - runtime: unknown; -}) { +function createStartAccountCtx(params: { token: string; secret: string; runtime: unknown }) { return { account: { accountId: "default", @@ -58,7 +54,9 @@ describe("linePlugin gateway.startAccount", () => { runtime: {}, }) as never, ), - ).rejects.toThrow('LINE webhook mode requires a non-empty channel secret for account "default".'); + ).rejects.toThrow( + 'LINE webhook mode requires a non-empty channel secret for account "default".', + ); expect(monitorLineProvider).not.toHaveBeenCalled(); }); diff --git a/extensions/line/src/channel.ts b/extensions/line/src/channel.ts index d5ca3ca185..cc30264e1e 100644 --- a/extensions/line/src/channel.ts +++ b/extensions/line/src/channel.ts @@ -604,7 +604,9 @@ export const linePlugin: ChannelPlugin = { probeAccount: async ({ account, timeoutMs }) => getLineRuntime().channel.line.probeLineBot(account.channelAccessToken, timeoutMs), buildAccountSnapshot: ({ account, runtime, probe }) => { - const configured = Boolean(account.channelAccessToken?.trim() && account.channelSecret?.trim()); + const configured = Boolean( + account.channelAccessToken?.trim() && account.channelSecret?.trim(), + ); return { accountId: account.accountId, name: account.name, diff --git a/src/line/monitor.fail-closed.test.ts b/src/line/monitor.fail-closed.test.ts index ef459a9e5f..ef3df2757a 100644 --- a/src/line/monitor.fail-closed.test.ts +++ b/src/line/monitor.fail-closed.test.ts @@ -1,6 +1,6 @@ +import { describe, expect, it } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; import type { RuntimeEnv } from "../runtime.js"; -import { describe, expect, it } from "vitest"; import { monitorLineProvider } from "./monitor.js"; describe("monitorLineProvider fail-closed webhook auth", () => {