import { describe, expect, it } from "vitest"; import { ECHO_ENDPOINT, ECHO_MODEL, geminiFailure } from "@/lib/gemini-policy"; describe("Echo own-provider rules", () => { it("uses the chosen Gemini 3.6 Flash model directly, not Lovable AI credits", () => { expect(ECHO_MODEL).toBe("gemini-3.6-flash"); expect(new URL(ECHO_ENDPOINT).hostname).toBe("generativelanguage.googleapis.com"); }); it("stops at Google's free-tier quota rather than falling back to paid AI", () => { expect(geminiFailure(429)).toContain("quota is reached"); }); });