test: tighten grouped render listener assertion · openclaw/openclaw@1ddab30
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -307,8 +307,8 @@ function getLastCaptureClickListener(calls: readonly unknown[][]) {
|
307 | 307 | |
308 | 308 | function expectLastCaptureClickListener(calls: readonly unknown[][]): unknown { |
309 | 309 | const listener = getLastCaptureClickListener(calls); |
310 | | -expect(listener).toEqual(expect.any(Function)); |
311 | | -if (listener === null) { |
| 310 | +expect(typeof listener).toBe("function"); |
| 311 | +if (typeof listener !== "function") { |
312 | 312 | throw new Error("Expected capture click listener"); |
313 | 313 | } |
314 | 314 | return listener; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。