test: dedupe ollama setup mock reads · openclaw/openclaw@9d13203
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -95,7 +95,7 @@ function registerProviderWithPluginConfig(pluginConfig: Record<string, unknown>)
|
95 | 95 | ); |
96 | 96 | |
97 | 97 | expect(registerProviderMock).toHaveBeenCalledTimes(1); |
98 | | -return registerProviderMock.mock.calls.at(0)?.[0]; |
| 98 | +return registerProviderMock.mock.calls[0]?.[0]; |
99 | 99 | } |
100 | 100 | |
101 | 101 | function requireRecord(value: unknown, label: string): Record<string, unknown> { |
@@ -106,7 +106,7 @@ function requireRecord(value: unknown, label: string): Record<string, unknown> {
|
106 | 106 | } |
107 | 107 | |
108 | 108 | function requireConfiguredStreamParams(): Record<string, unknown> { |
109 | | -return requireRecord(createConfiguredOllamaStreamFnMock.mock.calls.at(0)?.[0], "stream params"); |
| 109 | +return requireRecord(createConfiguredOllamaStreamFnMock.mock.calls[0]?.[0], "stream params"); |
110 | 110 | } |
111 | 111 | |
112 | 112 | function captureWrappedOllamaPayload( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。