mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 00:10:21 +00:00
Tests: add global web search contract suite
This commit is contained in:
12
src/plugins/contracts/web-search-provider.contract.test.ts
Normal file
12
src/plugins/contracts/web-search-provider.contract.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { describe } from "vitest";
|
||||
import { webSearchProviderContractRegistry } from "./registry.js";
|
||||
import { installWebSearchProviderContractSuite } from "./suites.js";
|
||||
|
||||
for (const entry of webSearchProviderContractRegistry) {
|
||||
describe(`${entry.pluginId}:${entry.provider.id} web search contract`, () => {
|
||||
installWebSearchProviderContractSuite({
|
||||
provider: entry.provider,
|
||||
credentialValue: entry.credentialValue,
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user