From 97c8944eebc1c76ddae64add2252c6bf55e14fa5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 01:35:25 +0100 Subject: [PATCH] test: dedupe dashboard links mock read --- src/commands/dashboard.links.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dashboard.links.test.ts b/src/commands/dashboard.links.test.ts index 6c85353783b..e2c89768513 100644 --- a/src/commands/dashboard.links.test.ts +++ b/src/commands/dashboard.links.test.ts @@ -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.