mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
style(line): format files to unblock ci check
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -604,7 +604,9 @@ export const linePlugin: ChannelPlugin<ResolvedLineAccount> = {
|
||||
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,
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user