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.