mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 16:00:22 +00:00
Tests: add global actions contract suite
This commit is contained in:
13
src/channels/plugins/contracts/actions.contract.test.ts
Normal file
13
src/channels/plugins/contracts/actions.contract.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { describe } from "vitest";
|
||||
import { actionContractRegistry } from "./registry.js";
|
||||
import { installChannelActionsContractSuite } from "./suites.js";
|
||||
|
||||
for (const entry of actionContractRegistry) {
|
||||
describe(`${entry.id} actions contract`, () => {
|
||||
installChannelActionsContractSuite({
|
||||
plugin: entry.plugin,
|
||||
cases: entry.cases as never,
|
||||
unsupportedAction: entry.unsupportedAction as never,
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user