mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:21:34 +00:00
30 lines
998 B
TypeScript
30 lines
998 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { createGoogleGeminiCliProvider, createGoogleProvider } from "./provider-contract-api.js";
|
|
|
|
describe("google provider contract", () => {
|
|
it("exposes Google AI Studio API-key setup", () => {
|
|
const provider = createGoogleProvider();
|
|
|
|
expect(provider.auth).toEqual([
|
|
expect.objectContaining({
|
|
id: "api-key",
|
|
label: "Google AI Studio API key",
|
|
hint: "Supported API-key access from aistudio.google.com/apikey",
|
|
wizard: expect.objectContaining({
|
|
choiceLabel: "Google AI Studio API key",
|
|
groupHint: "Supported API-key setup",
|
|
}),
|
|
}),
|
|
]);
|
|
});
|
|
|
|
it("keeps Gemini CLI as a runtime-only compatibility provider", () => {
|
|
const provider = createGoogleGeminiCliProvider();
|
|
|
|
expect(provider.label).toBe("Gemini CLI runtime");
|
|
expect(provider.auth).toEqual([]);
|
|
expect(provider.envVars).toEqual([]);
|
|
expect(provider.wizard).toBeUndefined();
|
|
});
|
|
});
|