test: assert matrix device health summary · openclaw/openclaw@deaed7a
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,13 +33,27 @@ describe("matrix device health", () => {
|
33 | 33 | }, |
34 | 34 | ]); |
35 | 35 | |
36 | | -expect(summary.currentDeviceId).toBe("du314Zpw3A"); |
37 | | -expect(summary.currentOpenClawDevices).toEqual([ |
38 | | -expect.objectContaining({ deviceId: "du314Zpw3A" }), |
39 | | -]); |
40 | | -expect(summary.staleOpenClawDevices).toEqual([ |
41 | | -expect.objectContaining({ deviceId: "BritdXC6iL" }), |
42 | | -expect.objectContaining({ deviceId: "G6NJU9cTgs" }), |
43 | | -]); |
| 36 | +expect(summary).toEqual({ |
| 37 | +currentDeviceId: "du314Zpw3A", |
| 38 | +currentOpenClawDevices: [ |
| 39 | +{ |
| 40 | +deviceId: "du314Zpw3A", |
| 41 | +displayName: "OpenClaw Gateway", |
| 42 | +current: true, |
| 43 | +}, |
| 44 | +], |
| 45 | +staleOpenClawDevices: [ |
| 46 | +{ |
| 47 | +deviceId: "BritdXC6iL", |
| 48 | +displayName: "OpenClaw Gateway", |
| 49 | +current: false, |
| 50 | +}, |
| 51 | +{ |
| 52 | +deviceId: "G6NJU9cTgs", |
| 53 | +displayName: "OpenClaw Debug", |
| 54 | +current: false, |
| 55 | +}, |
| 56 | +], |
| 57 | +}); |
44 | 58 | }); |
45 | 59 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。