mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
fix(googlechat): correct group setup example
This commit is contained in:
@@ -13,4 +13,19 @@ describe("googlechat config schema", () => {
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts the documented group config shape", () => {
|
||||
const result = GoogleChatConfigSchema.safeParse({
|
||||
groups: {
|
||||
"spaces/AAAA": {
|
||||
enabled: true,
|
||||
requireMention: true,
|
||||
users: ["users/1234567890"],
|
||||
systemPrompt: "Short answers only.",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user