test: dedupe dashboard links mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:35:25 +01:00
parent 02ddaafd99
commit 97c8944eeb

View File

@@ -166,7 +166,7 @@ describe("dashboardCommand", () => {
// hint string is written to runtime.log, which flows into the same
// console-captured log file readable by operator.read-scoped devices.
expect(formatControlUiSshHintMock).toHaveBeenCalledWith({ port: 18789, basePath: undefined });
const [sshHintOptions] = formatControlUiSshHintMock.mock.calls.at(0) ?? [];
const [sshHintOptions] = formatControlUiSshHintMock.mock.calls[0] ?? [];
expect(sshHintOptions).not.toHaveProperty("token");
// Double-check: no logged line contains the secret.