test: tighten codex native search assertion · openclaw/openclaw@9ac8909
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -148,17 +148,13 @@ describe("Codex native web-search payload helpers", () => {
|
148 | 148 | }, |
149 | 149 | }); |
150 | 150 | |
151 | | -expect(result).toMatchObject({ |
152 | | -enabled: true, |
153 | | -mode: "cached", |
154 | | -allowedDomains: ["example.com"], |
155 | | -contextSize: "high", |
156 | | -userLocation: { |
157 | | -country: "US", |
158 | | -city: "New York", |
159 | | -timezone: "America/New_York", |
160 | | -}, |
161 | | -}); |
| 151 | +expect(result.enabled).toBe(true); |
| 152 | +expect(result.mode).toBe("cached"); |
| 153 | +expect(result.allowedDomains).toEqual(["example.com"]); |
| 154 | +expect(result.contextSize).toBe("high"); |
| 155 | +expect(result.userLocation?.country).toBe("US"); |
| 156 | +expect(result.userLocation?.city).toBe("New York"); |
| 157 | +expect(result.userLocation?.timezone).toBe("America/New_York"); |
162 | 158 | }); |
163 | 159 | |
164 | 160 | it("builds the native Responses web_search tool", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。