mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:21:35 +07:00
test(feishu): update config-schema test for removed requireMention default
This commit is contained in:
committed by
Peter Steinberger
parent
e74cad5abb
commit
984ebdec32
@@ -19,7 +19,10 @@ describe("FeishuConfigSchema webhook validation", () => {
|
||||
expect(result.webhookPath).toBe("/feishu/events");
|
||||
expect(result.dmPolicy).toBe("pairing");
|
||||
expect(result.groupPolicy).toBe("allowlist");
|
||||
expect(result.requireMention).toBe(true);
|
||||
// requireMention has no schema-level default now — it is resolved at runtime
|
||||
// by resolveFeishuReplyPolicy(), which defaults to false for groupPolicy=open
|
||||
// and true otherwise.
|
||||
expect(result.requireMention).toBeUndefined();
|
||||
});
|
||||
|
||||
it("does not force top-level policy defaults into account config", () => {
|
||||
|
||||
Reference in New Issue
Block a user