mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-17 13:00:48 +00:00
* feat(feishu): add chat members/info tool support * Feishu: harden chat tool schema and coverage --------- Co-authored-by: Nereo <nereo@Nereos-Mac-mini.local> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
22 lines
570 B
TypeScript
22 lines
570 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { FeishuConfigSchema } from "./config-schema.js";
|
|
import { resolveToolsConfig } from "./tools-config.js";
|
|
|
|
describe("feishu tools config", () => {
|
|
it("enables chat tool by default", () => {
|
|
const resolved = resolveToolsConfig(undefined);
|
|
expect(resolved.chat).toBe(true);
|
|
});
|
|
|
|
it("accepts tools.chat in config schema", () => {
|
|
const parsed = FeishuConfigSchema.parse({
|
|
enabled: true,
|
|
tools: {
|
|
chat: false,
|
|
},
|
|
});
|
|
|
|
expect(parsed.tools?.chat).toBe(false);
|
|
});
|
|
});
|