test: verify default account warning copy · openclaw/openclaw@5ad73cb
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ describe("doctor missing default account binding warning", () => {
|
20 | 20 | } as OpenClawConfig); |
21 | 21 | |
22 | 22 | expect(warnings).toEqual([ |
23 | | -expect.stringContaining("channels.telegram: accounts.default is missing"), |
| 23 | +'- channels.telegram: accounts.default is missing and no valid account-scoped binding exists for configured accounts (alerts, work). Channel-only bindings (no accountId) match only default. Add bindings[].match.accountId for one of these accounts (or "*"), or add channels.telegram.accounts.default.', |
24 | 24 | ]); |
25 | 25 | }); |
26 | 26 | |
@@ -37,9 +37,7 @@ describe("doctor missing default account binding warning", () => {
|
37 | 37 | } as OpenClawConfig); |
38 | 38 | |
39 | 39 | expect(warnings).toEqual([ |
40 | | -expect.stringContaining( |
41 | | -"channels.telegram: multiple accounts are configured but no explicit default is set", |
42 | | -), |
| 40 | +"- channels.telegram: multiple accounts are configured but no explicit default is set. Set channels.telegram.defaultAccount or add channels.telegram.accounts.default to avoid fallback routing.", |
43 | 41 | ]); |
44 | 42 | }); |
45 | 43 | |
@@ -57,9 +55,7 @@ describe("doctor missing default account binding warning", () => {
|
57 | 55 | } as OpenClawConfig); |
58 | 56 | |
59 | 57 | expect(warnings).toEqual([ |
60 | | -expect.stringContaining( |
61 | | -'channels.telegram: defaultAccount is set to "missing" but does not match configured accounts', |
62 | | -), |
| 58 | +'- channels.telegram: defaultAccount is set to "missing" but does not match configured accounts (alerts, work). Set channels.telegram.defaultAccount to one of these accounts, or add channels.telegram.accounts.default to avoid fallback routing.', |
63 | 59 | ]); |
64 | 60 | }); |
65 | 61 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。