test: winnow config validation issues · openclaw/openclaw@044b417
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -525,10 +525,12 @@ describe("config plugin validation", () => {
|
525 | 525 | if (res.ok) { |
526 | 526 | return; |
527 | 527 | } |
528 | | -expect(res.issues).toContainEqual({ |
529 | | -path: "channels.telegarm", |
530 | | -message: "unknown channel id: telegarm", |
531 | | -}); |
| 528 | +expect(res.issues.filter((issue) => issue.path === "channels.telegarm")).toEqual([ |
| 529 | +{ |
| 530 | +path: "channels.telegarm", |
| 531 | +message: "unknown channel id: telegarm", |
| 532 | +}, |
| 533 | +]); |
532 | 534 | expectNoPath(res.warnings, "channels.telegarm"); |
533 | 535 | }); |
534 | 536 | |
@@ -1002,10 +1004,14 @@ describe("config plugin validation", () => {
|
1002 | 1004 | }); |
1003 | 1005 | expect(res.ok).toBe(false); |
1004 | 1006 | if (!res.ok) { |
1005 | | -expect(res.issues).toContainEqual({ |
1006 | | -path: "agents.defaults.heartbeat.target", |
1007 | | -message: "unknown heartbeat target: not-a-channel", |
1008 | | -}); |
| 1007 | +expect( |
| 1008 | +res.issues.filter((issue) => issue.path === "agents.defaults.heartbeat.target"), |
| 1009 | +).toEqual([ |
| 1010 | +{ |
| 1011 | +path: "agents.defaults.heartbeat.target", |
| 1012 | +message: "unknown heartbeat target: not-a-channel", |
| 1013 | +}, |
| 1014 | +]); |
1009 | 1015 | } |
1010 | 1016 | }); |
1011 | 1017 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。