mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 16:51:13 +00:00
26 lines
761 B
TypeScript
26 lines
761 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
buildProviderToolCompatFamilyHooks,
|
|
inspectGeminiToolSchemas,
|
|
normalizeGeminiToolSchemas,
|
|
} from "./provider-tools.js";
|
|
|
|
describe("buildProviderToolCompatFamilyHooks", () => {
|
|
it("covers the tool compat family matrix", () => {
|
|
const cases = [
|
|
{
|
|
family: "gemini" as const,
|
|
normalizeToolSchemas: normalizeGeminiToolSchemas,
|
|
inspectToolSchemas: inspectGeminiToolSchemas,
|
|
},
|
|
];
|
|
|
|
for (const testCase of cases) {
|
|
const hooks = buildProviderToolCompatFamilyHooks(testCase.family);
|
|
|
|
expect(hooks.normalizeToolSchemas).toBe(testCase.normalizeToolSchemas);
|
|
expect(hooks.inspectToolSchemas).toBe(testCase.inspectToolSchemas);
|
|
}
|
|
});
|
|
});
|