perf(test): skip setup promotion metadata fallback · openclaw/openclaw@fd2c883
steipete
·
2026-04-22
·
via Recent Commits to openclaw:main
2 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,7 @@ describe("setup promotion helpers", () => {
|
30 | 30 | const keys = resolveSingleAccountKeysToMove({ |
31 | 31 | channelKey: "demo", |
32 | 32 | channel: { |
| 33 | +defaultAccount: "ops", |
33 | 34 | dmPolicy: "allowlist", |
34 | 35 | allowFrom: ["+15551234567"], |
35 | 36 | groupPolicy: "allowlist", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,7 +102,10 @@ export function resolveSingleAccountKeysToMove(params: {
|
102 | 102 | Object.keys((params.channel.accounts as Record<string, unknown>) ?? {}).filter(Boolean).length > |
103 | 103 | 0; |
104 | 104 | const entries = Object.entries(params.channel) |
105 | | -.filter(([key, value]) => key !== "accounts" && key !== "enabled" && value !== undefined) |
| 105 | +.filter( |
| 106 | +([key, value]) => |
| 107 | +key !== "accounts" && key !== "defaultAccount" && key !== "enabled" && value !== undefined, |
| 108 | +) |
106 | 109 | .map(([key]) => key); |
107 | 110 | if (entries.length === 0) { |
108 | 111 | return []; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。