test: tighten imessage notification callback type · openclaw/openclaw@05202c1
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,9 @@ describe("iMessage monitor attachment policy", () => {
|
56 | 56 | readChannelAllowFromStoreMock.mockResolvedValue([]); |
57 | 57 | |
58 | 58 | const attachmentPath = "/Users/openclaw/Library/Messages/Attachments/AA/BB/photo.heic"; |
59 | | -let onNotification: ((message: { method: string; params: unknown }) => void) | undefined; |
| 59 | +let onNotification: |
| 60 | +| ((message: { method: string; params: unknown }) => void | Promise<void>) |
| 61 | +| undefined; |
60 | 62 | const client = { |
61 | 63 | request: vi.fn(async () => ({ subscription: 1 })), |
62 | 64 | waitForClose: vi.fn(async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。