mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 19:24:46 +00:00
test: update cli guidance assertions
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user