mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 23:22:32 +00:00
refactor: move tasks into bundled plugin
This commit is contained in:
@@ -215,6 +215,20 @@ describe("plugin runtime command execution", () => {
|
||||
]);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "exposes runtime.operations helpers",
|
||||
assert: (runtime: ReturnType<typeof createPluginRuntime>) => {
|
||||
expect(runtime.operations).toBeDefined();
|
||||
expectFunctionKeys(runtime.operations as Record<string, unknown>, [
|
||||
"dispatch",
|
||||
"getById",
|
||||
"findByRunId",
|
||||
"list",
|
||||
"summarize",
|
||||
"cancel",
|
||||
]);
|
||||
},
|
||||
},
|
||||
] as const)("$name", ({ assert }) => {
|
||||
expectRuntimeShape(assert);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user