mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 08:07:53 +00:00
test: dedupe openrouter stream mock read
This commit is contained in:
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user