test: type codex thread request mocks · openclaw/openclaw...
steipete
·
2026-05-24
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2383,7 +2383,7 @@ describe("runCodexAppServerAttempt", () => {
|
2383 | 2383 | ? [createRuntimeDynamicTool("heartbeat_respond")] |
2384 | 2384 | : []), |
2385 | 2385 | ]); |
2386 | | -const request = vi.fn(async (method: string) => { |
| 2386 | +const request = vi.fn(async (method: string, _params?: unknown) => { |
2387 | 2387 | if (method === "thread/start") { |
2388 | 2388 | return threadStartResult("thread-1"); |
2389 | 2389 | } |
@@ -2458,7 +2458,7 @@ describe("runCodexAppServerAttempt", () => {
|
2458 | 2458 | ? [createRuntimeDynamicTool("heartbeat_respond")] |
2459 | 2459 | : []), |
2460 | 2460 | ]); |
2461 | | -const request = vi.fn(async (method: string) => { |
| 2461 | +const request = vi.fn(async (method: string, _params?: unknown) => { |
2462 | 2462 | if (method === "thread/start") { |
2463 | 2463 | return threadStartResult("thread-1"); |
2464 | 2464 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。