Files
openclaw/extensions/feishu/src/tools-config.test.ts
刘苇 5209c48923 feat(feishu): add chat info/member tool (openclaw#14674)
* 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>
2026-02-28 10:00:31 -06:00

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);
});
});