test: tighten codex native search assertion

This commit is contained in:
Peter Steinberger
2026-05-09 13:51:59 +01:00
parent 937c474f14
commit 9ac8909b15

View File

@@ -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", () => {