mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:44:44 +00:00
test: dedupe dashboard links mock read
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user