mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-01 12:21:25 +00:00
13 lines
485 B
TypeScript
13 lines
485 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolveCoreToolProfilePolicy } from "./tool-catalog.js";
|
|
|
|
describe("tool-catalog", () => {
|
|
it("includes web_search and web_fetch in the coding profile policy", () => {
|
|
const policy = resolveCoreToolProfilePolicy("coding");
|
|
expect(policy).toBeDefined();
|
|
expect(policy!.allow).toContain("web_search");
|
|
expect(policy!.allow).toContain("web_fetch");
|
|
expect(policy!.allow).toContain("image_generate");
|
|
});
|
|
});
|