test: verify config advisory body · openclaw/openclaw@dea7ab0
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -77,9 +77,13 @@ describe("requireValidConfigSnapshot", () => {
|
77 | 77 | expect(config).toEqual({ plugins: {} }); |
78 | 78 | expect(runtime.error).not.toHaveBeenCalled(); |
79 | 79 | expect(runtime.exit).not.toHaveBeenCalled(); |
80 | | -const logMessage = requireFirstLog(runtime); |
81 | | -expect(logMessage).toContain("Plugin compatibility: 1 notice."); |
82 | | -expect(logMessage).toContain("legacy-plugin still uses legacy before_agent_start"); |
| 80 | +expect(requireFirstLog(runtime)).toBe( |
| 81 | +[ |
| 82 | +"Plugin compatibility: 1 notice.", |
| 83 | +"- legacy-plugin still uses legacy before_agent_start; keep regression coverage on this plugin, and prefer before_model_resolve/before_prompt_build for new work.", |
| 84 | +"Review: openclaw doctor", |
| 85 | +].join("\n"), |
| 86 | +); |
83 | 87 | }); |
84 | 88 | |
85 | 89 | it("blocks invalid config before emitting compatibility advice", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。