mirror of https://github.com/openclaw/openclaw.git
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);
|
|
});
|
|
});
|