diff --git a/extensions/openrouter/index.test.ts b/extensions/openrouter/index.test.ts index f3fcc8e3f96..350af53205f 100644 --- a/extensions/openrouter/index.test.ts +++ b/extensions/openrouter/index.test.ts @@ -224,7 +224,7 @@ describe("openrouter provider hooks", () => { ); expect(baseStreamFn).toHaveBeenCalledOnce(); - const firstCall = baseStreamFn.mock.calls.at(0); + const firstCall = baseStreamFn.mock.calls[0]; const firstModel = firstCall?.[0]; const compat = (firstModel as { compat?: { openRouterRouting?: { order?: unknown } } }).compat; expect(compat?.openRouterRouting?.order).toEqual(["moonshot"]);