test: dedupe openrouter stream mock read · openclaw/openclaw@50cb5ae
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -224,7 +224,7 @@ describe("openrouter provider hooks", () => {
|
224 | 224 | ); |
225 | 225 | |
226 | 226 | expect(baseStreamFn).toHaveBeenCalledOnce(); |
227 | | -const firstCall = baseStreamFn.mock.calls.at(0); |
| 227 | +const firstCall = baseStreamFn.mock.calls[0]; |
228 | 228 | const firstModel = firstCall?.[0]; |
229 | 229 | const compat = (firstModel as { compat?: { openRouterRouting?: { order?: unknown } } }).compat; |
230 | 230 | expect(compat?.openRouterRouting?.order).toEqual(["moonshot"]); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。