From 9ac8909b154d64bfbdc5d6e49c2374337dcf901d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 13:51:59 +0100 Subject: [PATCH] test: tighten codex native search assertion --- src/agents/codex-native-web-search.test.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/agents/codex-native-web-search.test.ts b/src/agents/codex-native-web-search.test.ts index 256d3b2185a..3600f160556 100644 --- a/src/agents/codex-native-web-search.test.ts +++ b/src/agents/codex-native-web-search.test.ts @@ -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", () => {