Skip to content

Commit 9ba66a1

Browse files
committed
test(google): assert the exact catalog in the none case
1 parent a366934 commit 9ba66a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/google-adapter.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ describe("google adapter — tool_choice on the wire", () => {
256256
// Gemini on the same route has no VALIDATED override, so NONE rides with the catalog intact.
257257
const geminiParsed = parsedWithChoice("none");
258258
const geminiRequest = JSON.parse((await createGoogleAdapter(ccaProvider).buildRequest(geminiParsed)).body).request as Record<string, unknown>;
259-
expect(geminiRequest.tools).toBeDefined();
259+
const declared = (geminiRequest.tools as { functionDeclarations: { name: string }[] }[])[0].functionDeclarations.map(d => d.name);
260+
expect(declared).toEqual(["get_weather", "mcp__chrome__shot"]);
260261
expect(geminiRequest.toolConfig).toEqual({ functionCallingConfig: { mode: "NONE" } });
261262
});
262263

0 commit comments

Comments
 (0)