mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:04:31 +00:00
chore: Fix types in tests 10/N.
This commit is contained in:
@@ -245,7 +245,7 @@ describe("channels command", () => {
|
||||
});
|
||||
|
||||
await channelsListCommand({ json: true, usage: false }, runtime);
|
||||
const payload = JSON.parse(String(runtime.log.mock.calls[0]?.[0] ?? "{}")) as {
|
||||
const payload = JSON.parse(runtime.log.mock.calls[0]?.[0] as string) as {
|
||||
auth?: Array<{ id: string }>;
|
||||
};
|
||||
const ids = payload.auth?.map((entry) => entry.id) ?? [];
|
||||
|
||||
Reference in New Issue
Block a user