test: update config patch schema fixture · openclaw/openclaw@9a49d14
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1597,10 +1597,8 @@ describe("config cli", () => {
|
1597 | 1597 | fs.writeFileSync( |
1598 | 1598 | pathname, |
1599 | 1599 | JSON.stringify({ |
1600 | | -channels: { |
1601 | | -discord: { |
1602 | | -typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" }, |
1603 | | -}, |
| 1600 | +gateway: { |
| 1601 | +typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" }, |
1604 | 1602 | }, |
1605 | 1603 | }), |
1606 | 1604 | "utf8", |
@@ -1618,7 +1616,7 @@ describe("config cli", () => {
|
1618 | 1616 | expect(mockError).toHaveBeenCalledWith( |
1619 | 1617 | expect.stringContaining("Dry run failed: config schema validation failed."), |
1620 | 1618 | ); |
1621 | | -expect(mockError).toHaveBeenCalledWith(expect.stringContaining("channels.discord")); |
| 1619 | +expect(mockError).toHaveBeenCalledWith(expect.stringContaining("gateway")); |
1622 | 1620 | expect(mockError).toHaveBeenCalledWith(expect.stringContaining('"typo"')); |
1623 | 1621 | }); |
1624 | 1622 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。