test: dedupe models cli mock read · openclaw/openclaw@77f08d0
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -111,7 +111,7 @@ describe("models cli", () => {
|
111 | 111 | expected: Record<string, unknown>, |
112 | 112 | ) { |
113 | 113 | expect(command).toHaveBeenCalledTimes(1); |
114 | | -const [options, context] = command.mock.calls.at(0) ?? []; |
| 114 | +const [options, context] = command.mock.calls[0] ?? []; |
115 | 115 | const optionRecord = options as Record<string, unknown> | undefined; |
116 | 116 | for (const [key, value] of Object.entries(expected)) { |
117 | 117 | expect(optionRecord?.[key]).toEqual(value); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。