test: dedupe dashboard links mock read · openclaw/openclaw@97c8944
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -166,7 +166,7 @@ describe("dashboardCommand", () => {
|
166 | 166 | // hint string is written to runtime.log, which flows into the same |
167 | 167 | // console-captured log file readable by operator.read-scoped devices. |
168 | 168 | expect(formatControlUiSshHintMock).toHaveBeenCalledWith({ port: 18789, basePath: undefined }); |
169 | | -const [sshHintOptions] = formatControlUiSshHintMock.mock.calls.at(0) ?? []; |
| 169 | +const [sshHintOptions] = formatControlUiSshHintMock.mock.calls[0] ?? []; |
170 | 170 | expect(sshHintOptions).not.toHaveProperty("token"); |
171 | 171 | |
172 | 172 | // Double-check: no logged line contains the secret. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。