mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-18 12:08:52 +00:00
test: tighten google web search assertion
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user