mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:30:43 +00:00
test: tighten codex native search assertion
This commit is contained in:
@@ -148,17 +148,13 @@ describe("Codex native web-search payload helpers", () => {
|
||||
},
|
||||
});
|
||||
|
||||
expect(result).toMatchObject({
|
||||
enabled: true,
|
||||
mode: "cached",
|
||||
allowedDomains: ["example.com"],
|
||||
contextSize: "high",
|
||||
userLocation: {
|
||||
country: "US",
|
||||
city: "New York",
|
||||
timezone: "America/New_York",
|
||||
},
|
||||
});
|
||||
expect(result.enabled).toBe(true);
|
||||
expect(result.mode).toBe("cached");
|
||||
expect(result.allowedDomains).toEqual(["example.com"]);
|
||||
expect(result.contextSize).toBe("high");
|
||||
expect(result.userLocation?.country).toBe("US");
|
||||
expect(result.userLocation?.city).toBe("New York");
|
||||
expect(result.userLocation?.timezone).toBe("America/New_York");
|
||||
});
|
||||
|
||||
it("builds the native Responses web_search tool", () => {
|
||||
|
||||
Reference in New Issue
Block a user