test: tighten google web search assertion

This commit is contained in:
Shakker
2026-05-11 10:20:41 +01:00
parent 4cfba8b45d
commit e4ea45495c

View File

@@ -389,8 +389,11 @@ describe("google web search provider", () => {
freshness: "week",
date_after: "2026-04-01",
}),
).resolves.toMatchObject({
).resolves.toEqual({
docs: "https://docs.openclaw.ai/tools/web",
error: "conflicting_time_filters",
message:
"freshness and date_after/date_before cannot be used together. Use either freshness (day/week/month/year) or a date range (date_after/date_before), not both.",
});
expect(mockFetch).not.toHaveBeenCalled();
});