test: check zalouser warning content

This commit is contained in:
Peter Steinberger
2026-05-11 19:50:34 +01:00
parent 6873f07e36
commit 60bda15223

View File

@@ -29,14 +29,16 @@ describe("zalouser doctor", () => {
}) ?? [],
);
const mutableWarning = warnings.find((warning: string) =>
warning.includes("mutable allowlist entry across zalouser"),
);
const groupPathWarning = warnings.find((warning: string) =>
warning.includes("channels.zalouser.groups: group:trusted"),
);
expect(mutableWarning).toBeDefined();
expect(groupPathWarning).toBeDefined();
expect(
warnings.some((warning: string) =>
warning.includes("mutable allowlist entry across zalouser"),
),
).toBe(true);
expect(
warnings.some((warning: string) =>
warning.includes("channels.zalouser.groups: group:trusted"),
),
).toBe(true);
});
it("normalizes legacy group allow aliases to enabled", () => {