test: check zalouser warning content · openclaw/openclaw@60bda15
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,14 +29,16 @@ describe("zalouser doctor", () => {
|
29 | 29 | }) ?? [], |
30 | 30 | ); |
31 | 31 | |
32 | | -const mutableWarning = warnings.find((warning: string) => |
33 | | -warning.includes("mutable allowlist entry across zalouser"), |
34 | | -); |
35 | | -const groupPathWarning = warnings.find((warning: string) => |
36 | | -warning.includes("channels.zalouser.groups: group:trusted"), |
37 | | -); |
38 | | -expect(mutableWarning).toBeDefined(); |
39 | | -expect(groupPathWarning).toBeDefined(); |
| 32 | +expect( |
| 33 | +warnings.some((warning: string) => |
| 34 | +warning.includes("mutable allowlist entry across zalouser"), |
| 35 | +), |
| 36 | +).toBe(true); |
| 37 | +expect( |
| 38 | +warnings.some((warning: string) => |
| 39 | +warning.includes("channels.zalouser.groups: group:trusted"), |
| 40 | +), |
| 41 | +).toBe(true); |
40 | 42 | }); |
41 | 43 | |
42 | 44 | it("normalizes legacy group allow aliases to enabled", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。