test: tighten cli respawn bridge assertion · openclaw/openclaw@fa04bb9
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -186,9 +186,9 @@ describe("runCliRespawnPlan", () => {
|
186 | 186 | env: { OPENCLAW_NODE_OPTIONS_READY: "1" }, |
187 | 187 | }, |
188 | 188 | ); |
189 | | -expect(attachChildProcessBridge).toHaveBeenCalledWith(child, { |
190 | | - onSignal: expect.any(Function), |
191 | | -}); |
| 189 | +expect(attachChildProcessBridge.mock.calls[0]?.[0]).toBe(child); |
| 190 | +const bridgeOptions = attachChildProcessBridge.mock.calls[0]?.[1]; |
| 191 | +expect(typeof bridgeOptions?.onSignal).toBe("function"); |
192 | 192 | |
193 | 193 | child.emit("exit", 0, null); |
194 | 194 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。