continue-custom/core/tools/searchWebGating.vitest.ts
Patrick Erichsen b60273502e refactor: remove Hub/Mission Control connection code (CON-5885)
Remove all ControlPlaneClient infrastructure, WorkOS auth, managed proxy,
platform profile loading, org policy enforcement, and credits UI.
Config is now fully local — only file-based config.yaml and .env secrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00

19 lines
587 B
TypeScript

import { expect, test } from "vitest";
import { BuiltInToolNames } from "./builtIn";
import { getConfigDependentToolDefinitions } from "./index";
test("searchWeb tool is always available", async () => {
const tools = await getConfigDependentToolDefinitions({
rules: [],
enableExperimentalTools: false,
isRemote: false,
modelName: "",
ide: {} as any,
});
const searchWebTool = tools.find(
(tool) => tool.function.name === BuiltInToolNames.SearchWeb,
);
expect(searchWebTool).toBeDefined();
expect(searchWebTool?.displayTitle).toBe("Search Web");
});