test: dedupe models auth-status mock reads · openclaw/openclaw@041906e
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
src/gateway/server-methods
| Original file line number | Diff line number | Diff line change |
|---|
@@ -81,15 +81,15 @@ function requireRecord(value: unknown): Record<string, unknown> {
|
81 | 81 | function firstRespondCall( |
82 | 82 | opts: GatewayRequestHandlerOptions & { respond: ReturnType<typeof vi.fn> }, |
83 | 83 | ) { |
84 | | -return opts.respond.mock.calls.at(0); |
| 84 | +return opts.respond.mock.calls[0]; |
85 | 85 | } |
86 | 86 | |
87 | 87 | function firstEnsureAuthProfileStoreCall() { |
88 | | -return mocks.ensureAuthProfileStore.mock.calls.at(0); |
| 88 | +return mocks.ensureAuthProfileStore.mock.calls[0]; |
89 | 89 | } |
90 | 90 | |
91 | 91 | function firstBuildAuthHealthSummaryCall() { |
92 | | -return mocks.buildAuthHealthSummary.mock.calls.at(0) as unknown as |
| 92 | +return mocks.buildAuthHealthSummary.mock.calls[0] as unknown as |
93 | 93 | | [{ providers?: string[] }] |
94 | 94 | | undefined; |
95 | 95 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。