test: clarify config cli dry run assertion · openclaw/openclaw@663c970
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -215,8 +215,8 @@ describe("config cli integration", () => {
|
215 | 215 | const afterDryRun = fs.readFileSync(configPath, "utf8"); |
216 | 216 | expect(afterDryRun).toBe(before); |
217 | 217 | expect(runtime.errors).toEqual([]); |
218 | | -expect(runtime.logs.some((line) => line.includes("Dry run successful: 2 update(s)"))).toBe( |
219 | | -true, |
| 218 | +expect(runtime.logs).toEqual( |
| 219 | +expect.arrayContaining([expect.stringContaining("Dry run successful: 2 update(s)")]), |
220 | 220 | ); |
221 | 221 | |
222 | 222 | await runConfigSet({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。