mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 08:41:13 +00:00
test: stabilize rebased auto-reply command checks
This commit is contained in:
@@ -12,11 +12,7 @@ import {
|
||||
readChannelAllowFromStore,
|
||||
removeChannelAllowFromStoreEntry,
|
||||
} from "../../pairing/pairing-store.js";
|
||||
import {
|
||||
DEFAULT_ACCOUNT_ID,
|
||||
normalizeAccountId,
|
||||
normalizeOptionalAccountId,
|
||||
} from "../../routing/session-key.js";
|
||||
import { DEFAULT_ACCOUNT_ID, normalizeOptionalAccountId } from "../../routing/session-key.js";
|
||||
import { normalizeStringEntries } from "../../shared/string-normalization.js";
|
||||
import {
|
||||
rejectNonOwnerCommand,
|
||||
|
||||
@@ -949,9 +949,9 @@ describe("/approve command", () => {
|
||||
...telegramCommandTestPlugin,
|
||||
config: {
|
||||
...telegramCommandTestPlugin.config,
|
||||
defaultAccountId: (cfg) =>
|
||||
((cfg.channels?.telegram as { defaultAccount?: string } | undefined)?.defaultAccount ??
|
||||
DEFAULT_ACCOUNT_ID),
|
||||
defaultAccountId: (cfg: OpenClawConfig) =>
|
||||
(cfg.channels?.telegram as { defaultAccount?: string } | undefined)
|
||||
?.defaultAccount ?? DEFAULT_ACCOUNT_ID,
|
||||
},
|
||||
},
|
||||
source: "test",
|
||||
@@ -1839,9 +1839,9 @@ describe("handleCommands /config configWrites gating", () => {
|
||||
...telegramCommandTestPlugin,
|
||||
config: {
|
||||
...telegramCommandTestPlugin.config,
|
||||
defaultAccountId: (cfg) =>
|
||||
((cfg.channels?.telegram as { defaultAccount?: string } | undefined)?.defaultAccount ??
|
||||
DEFAULT_ACCOUNT_ID),
|
||||
defaultAccountId: (cfg: OpenClawConfig) =>
|
||||
(cfg.channels?.telegram as { defaultAccount?: string } | undefined)
|
||||
?.defaultAccount ?? DEFAULT_ACCOUNT_ID,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -2179,9 +2179,9 @@ describe("handleCommands /allowlist", () => {
|
||||
...telegramCommandTestPlugin,
|
||||
config: {
|
||||
...telegramCommandTestPlugin.config,
|
||||
defaultAccountId: (cfg) =>
|
||||
((cfg.channels?.telegram as { defaultAccount?: string } | undefined)?.defaultAccount ??
|
||||
DEFAULT_ACCOUNT_ID),
|
||||
defaultAccountId: (cfg: OpenClawConfig) =>
|
||||
(cfg.channels?.telegram as { defaultAccount?: string } | undefined)
|
||||
?.defaultAccount ?? DEFAULT_ACCOUNT_ID,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -2251,9 +2251,9 @@ describe("handleCommands /allowlist", () => {
|
||||
...telegramCommandTestPlugin,
|
||||
config: {
|
||||
...telegramCommandTestPlugin.config,
|
||||
defaultAccountId: (cfg) =>
|
||||
((cfg.channels?.telegram as { defaultAccount?: string } | undefined)?.defaultAccount ??
|
||||
DEFAULT_ACCOUNT_ID),
|
||||
defaultAccountId: (cfg: OpenClawConfig) =>
|
||||
(cfg.channels?.telegram as { defaultAccount?: string } | undefined)
|
||||
?.defaultAccount ?? DEFAULT_ACCOUNT_ID,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user