Tests: add global actions contract suite
This commit is contained in:
parent
910d039ea7
commit
c5d61b9677
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,
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user