mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
test(anthropic): type node invoke mock from runtime (#107421)
This commit is contained in:
committed by
GitHub
parent
1b02289fcf
commit
2b0cd2761c
@@ -513,7 +513,7 @@ describe("Claude session catalog", () => {
|
||||
invocableCommands: commands.filter((command) => authorizedCommands.has(command)),
|
||||
},
|
||||
];
|
||||
const invoke = vi.fn(async ({ command }: { command: string }) => {
|
||||
const invoke = vi.fn(async ({ command }: Parameters<PluginRuntime["nodes"]["invoke"]>[0]) => {
|
||||
if (command === CLAUDE_SESSIONS_LIST_COMMAND) {
|
||||
return {
|
||||
payloadJSON: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user