fix(test): satisfy provider web search test types · openclaw/openclaw@9c88241
vincentkoc
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -243,7 +243,7 @@ describe("brave web search provider", () => {
|
243 | 243 | return { |
244 | 244 | ok: true, |
245 | 245 | json: async () => ({ web: { results: [] } }), |
246 | | -} as Response; |
| 246 | +} as unknown as Response; |
247 | 247 | }); |
248 | 248 | global.fetch = mockFetch as typeof global.fetch; |
249 | 249 | |
@@ -301,7 +301,7 @@ describe("brave web search provider", () => {
|
301 | 301 | json: async () => { |
302 | 302 | throw new SyntaxError("Unexpected token"); |
303 | 303 | }, |
304 | | -} as Response; |
| 304 | +} as unknown as Response; |
305 | 305 | }); |
306 | 306 | global.fetch = mockFetch as typeof global.fetch; |
307 | 307 | |
@@ -330,7 +330,7 @@ describe("brave web search provider", () => {
|
330 | 330 | json: async () => { |
331 | 331 | throw new SyntaxError("Unexpected token"); |
332 | 332 | }, |
333 | | -} as Response; |
| 333 | +} as unknown as Response; |
334 | 334 | }); |
335 | 335 | global.fetch = mockFetch as typeof global.fetch; |
336 | 336 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。