mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:58:25 +00:00
test (heartbeat): relax brittle reply option assertions
This commit is contained in:
@@ -545,7 +545,7 @@ describe("runHeartbeatOnce", () => {
|
||||
Body: expect.stringMatching(/Ops check[\s\S]*Current time: /),
|
||||
SessionKey: sessionKey,
|
||||
}),
|
||||
{ isHeartbeat: true },
|
||||
expect.objectContaining({ isHeartbeat: true }),
|
||||
cfg,
|
||||
);
|
||||
} finally {
|
||||
@@ -622,7 +622,7 @@ describe("runHeartbeatOnce", () => {
|
||||
expect(sendWhatsApp).toHaveBeenCalledWith("+1555", "Final alert", expect.any(Object));
|
||||
expect(replySpy).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ SessionKey: sessionKey }),
|
||||
{ isHeartbeat: true },
|
||||
expect.objectContaining({ isHeartbeat: true }),
|
||||
cfg,
|
||||
);
|
||||
} finally {
|
||||
@@ -700,7 +700,7 @@ describe("runHeartbeatOnce", () => {
|
||||
expect(sendWhatsApp).toHaveBeenCalledWith(groupId, "Group alert", expect.any(Object));
|
||||
expect(replySpy).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ SessionKey: groupSessionKey }),
|
||||
{ isHeartbeat: true },
|
||||
expect.objectContaining({ isHeartbeat: true }),
|
||||
cfg,
|
||||
);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user