From b82e05f33c1d2d8e919afa35664dccce7ec32e3e Mon Sep 17 00:00:00 2001 From: Alix-007 <267018309+Alix-007@users.noreply.github.com> Date: Fri, 20 Mar 2026 11:10:24 +0800 Subject: [PATCH] style(commands): format owner allowlist cache test --- .../command-auth.owner-allow-from-cache.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/auto-reply/command-auth.owner-allow-from-cache.test.ts b/src/auto-reply/command-auth.owner-allow-from-cache.test.ts index fb1f3af9414..23023d7aa35 100644 --- a/src/auto-reply/command-auth.owner-allow-from-cache.test.ts +++ b/src/auto-reply/command-auth.owner-allow-from-cache.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { setActivePluginRegistry } from "../plugins/runtime.js"; import type { OpenClawConfig } from "../config/config.js"; +import { setActivePluginRegistry } from "../plugins/runtime.js"; import { createOutboundTestPlugin, createTestRegistry } from "../test-utils/channel-plugins.js"; import { resolveCommandAuthorization } from "./command-auth.js"; import type { MsgContext } from "./templating.js"; @@ -25,9 +25,7 @@ describe("resolveCommandAuthorization owner allowlist hot path", () => { .filter((entry) => entry.length > 0); }, }; - setActivePluginRegistry( - createTestRegistry([{ pluginId: "discord", plugin, source: "test" }]), - ); + setActivePluginRegistry(createTestRegistry([{ pluginId: "discord", plugin, source: "test" }])); }); afterEach(() => { @@ -81,7 +79,9 @@ describe("resolveCommandAuthorization owner allowlist hot path", () => { plugin.config = { ...plugin.config, formatAllowFrom: ({ cfg, allowFrom }) => - allowFrom.map((entry) => `${(cfg as { testVariant?: string }).testVariant}:${String(entry)}`), + allowFrom.map( + (entry) => `${(cfg as { testVariant?: string }).testVariant}:${String(entry)}`, + ), }; setActivePluginRegistry( createTestRegistry([{ pluginId: "discord", plugin, source: "test" }]),