mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-20 05:07:34 +00:00
test: assert matrix device health summary
This commit is contained in:
@@ -33,13 +33,27 @@ describe("matrix device health", () => {
|
||||
},
|
||||
]);
|
||||
|
||||
expect(summary.currentDeviceId).toBe("du314Zpw3A");
|
||||
expect(summary.currentOpenClawDevices).toEqual([
|
||||
expect.objectContaining({ deviceId: "du314Zpw3A" }),
|
||||
]);
|
||||
expect(summary.staleOpenClawDevices).toEqual([
|
||||
expect.objectContaining({ deviceId: "BritdXC6iL" }),
|
||||
expect.objectContaining({ deviceId: "G6NJU9cTgs" }),
|
||||
]);
|
||||
expect(summary).toEqual({
|
||||
currentDeviceId: "du314Zpw3A",
|
||||
currentOpenClawDevices: [
|
||||
{
|
||||
deviceId: "du314Zpw3A",
|
||||
displayName: "OpenClaw Gateway",
|
||||
current: true,
|
||||
},
|
||||
],
|
||||
staleOpenClawDevices: [
|
||||
{
|
||||
deviceId: "BritdXC6iL",
|
||||
displayName: "OpenClaw Gateway",
|
||||
current: false,
|
||||
},
|
||||
{
|
||||
deviceId: "G6NJU9cTgs",
|
||||
displayName: "OpenClaw Debug",
|
||||
current: false,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user