test: verify legacy validation changes · openclaw/openclaw@630c9fe
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,9 +32,13 @@ describe("legacy config migrate validation", () => {
|
32 | 32 | historyLimit: 8, |
33 | 33 | mentionPatterns: ["@openclaw"], |
34 | 34 | }); |
35 | | -expect(res.changes).toContain( |
| 35 | +expect(res.changes).toStrictEqual([ |
| 36 | +"Moved routing.allowFrom → channels.whatsapp.allowFrom.", |
| 37 | +'Moved routing.groupChat.requireMention → channels.whatsapp.groups."*".requireMention.', |
36 | 38 | 'Moved routing.groupChat.requireMention → channels.telegram.groups."*".requireMention.', |
37 | | -); |
| 39 | +"Moved routing.groupChat.historyLimit → messages.groupChat.historyLimit.", |
| 40 | +"Moved routing.groupChat.mentionPatterns → messages.groupChat.mentionPatterns.", |
| 41 | +]); |
38 | 42 | }); |
39 | 43 | |
40 | 44 | it("returns migrated config when unrelated plugin validation issues remain (#76798)", () => { |
@@ -57,12 +61,10 @@ describe("legacy config migrate validation", () => {
|
57 | 61 | }); |
58 | 62 | |
59 | 63 | expect(res.partiallyValid).toBe(true); |
60 | | -expect(res.changes).toContain( |
| 64 | +expect(res.changes).toStrictEqual([ |
61 | 65 | "Removed agents.defaults.llm; model idle timeout now follows models.providers.<id>.timeoutSeconds.", |
62 | | -); |
63 | | -expect(res.changes).toContain( |
64 | 66 | "Migration applied; other validation issues remain — run doctor to review.", |
65 | | -); |
| 67 | +]); |
66 | 68 | expect(res.config?.agents?.defaults).toEqual({ |
67 | 69 | model: { primary: "openai/gpt-5.5" }, |
68 | 70 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。