test(tools): fix kimi web_search mock typing

This commit is contained in:
Peter Steinberger
2026-02-23 18:27:16 +00:00
parent 7837d23103
commit ff0c40d367

View File

@@ -239,7 +239,7 @@ describe("web_search kimi provider", () => {
});
it("runs the Kimi web_search tool flow and echoes tool results", async () => {
const mockFetch = vi.fn(async (_input: RequestInfo | URL) => {
const mockFetch = vi.fn(async (_input: RequestInfo | URL, _init?: RequestInit) => {
const idx = mockFetch.mock.calls.length;
if (idx === 1) {
return new Response(