mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 05:40:22 +00:00
19 lines
658 B
TypeScript
19 lines
658 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { webSearchProviderContractRegistry } from "./registry.js";
|
|
import { installWebSearchProviderContractSuite } from "./suites.js";
|
|
|
|
describe("web search provider contract registry load", () => {
|
|
it("loads bundled web search providers", () => {
|
|
expect(webSearchProviderContractRegistry.length).toBeGreaterThan(0);
|
|
});
|
|
});
|
|
|
|
for (const entry of webSearchProviderContractRegistry) {
|
|
describe(`${entry.pluginId}:${entry.provider.id} web search contract`, () => {
|
|
installWebSearchProviderContractSuite({
|
|
provider: entry.provider,
|
|
credentialValue: entry.credentialValue,
|
|
});
|
|
});
|
|
}
|