test: tighten nextcloud talk status timestamp assertion · openclaw/openclaw@1dd0592
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/nextcloud-talk/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -178,7 +178,11 @@ describe("nextcloud-talk inbound behavior", () => {
|
178 | 178 | }), |
179 | 179 | ); |
180 | 180 | expect(statusSink).toHaveBeenCalledWith({ lastInboundAt: 1_736_380_800_000 }); |
181 | | -expect(statusSink).toHaveBeenCalledWith({ lastOutboundAt: expect.any(Number) }); |
| 181 | +const outboundStatus = statusSink.mock.calls |
| 182 | +.map(([status]) => status as { lastOutboundAt?: unknown }) |
| 183 | +.find((status) => status.lastOutboundAt !== undefined); |
| 184 | +expect(typeof outboundStatus?.lastOutboundAt).toBe("number"); |
| 185 | +expect(outboundStatus?.lastOutboundAt).toBeGreaterThanOrEqual(1_736_380_800_000); |
182 | 186 | expect(dispatchChannelMessageReplyWithBaseMock).not.toHaveBeenCalled(); |
183 | 187 | }); |
184 | 188 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。