test: tighten brave missing key assertion

This commit is contained in:
Shakker
2026-05-10 22:17:57 +01:00
parent c18df4aaee
commit 06dedb732b

View File

@@ -102,7 +102,8 @@ describe("brave web search provider", () => {
expect(result).toMatchObject({
error: "missing_brave_api_key",
message: expect.stringContaining("use web_fetch for a specific URL or the browser tool"),
message:
"web_search (brave) needs a Brave Search API key. Run `openclaw configure --section web` to store it, or set BRAVE_API_KEY in the Gateway environment. If you do not want to configure a search API key, use web_fetch for a specific URL or the browser tool for interactive pages.",
});
});