mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
perf(test): skip setup promotion metadata fallback
This commit is contained in:
@@ -30,6 +30,7 @@ describe("setup promotion helpers", () => {
|
||||
const keys = resolveSingleAccountKeysToMove({
|
||||
channelKey: "demo",
|
||||
channel: {
|
||||
defaultAccount: "ops",
|
||||
dmPolicy: "allowlist",
|
||||
allowFrom: ["+15551234567"],
|
||||
groupPolicy: "allowlist",
|
||||
|
||||
@@ -102,7 +102,10 @@ export function resolveSingleAccountKeysToMove(params: {
|
||||
Object.keys((params.channel.accounts as Record<string, unknown>) ?? {}).filter(Boolean).length >
|
||||
0;
|
||||
const entries = Object.entries(params.channel)
|
||||
.filter(([key, value]) => key !== "accounts" && key !== "enabled" && value !== undefined)
|
||||
.filter(
|
||||
([key, value]) =>
|
||||
key !== "accounts" && key !== "defaultAccount" && key !== "enabled" && value !== undefined,
|
||||
)
|
||||
.map(([key]) => key);
|
||||
if (entries.length === 0) {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user