test: dedupe openrouter stream mock read

This commit is contained in:
Peter Steinberger
2026-05-13 07:05:03 +01:00
parent 6a589017ca
commit 50cb5ae089

View File

@@ -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"]);