test: update cli guidance assertions

This commit is contained in:
Shakker
2026-05-09 02:47:37 +01:00
parent 05168dd00d
commit 59f75e793c
4 changed files with 10 additions and 6 deletions

View File

@@ -538,7 +538,9 @@ describe("devices cli tokens", () => {
await runDevicesCommand(["rotate", "--device", " ", "--role", "main"]);
expect(callGateway).not.toHaveBeenCalled();
expect(runtime.error).toHaveBeenCalledWith("--device and --role required");
expect(runtime.error).toHaveBeenCalledWith(
"--device and --role are required. Run openclaw devices list to choose a paired device.",
);
expect(runtime.exit).toHaveBeenCalledWith(1);
});
});