test(web): make heartbeat call selection deterministic
This commit is contained in:
@@ -822,7 +822,8 @@ describe("web auto-reply", () => {
|
|||||||
await run;
|
await run;
|
||||||
|
|
||||||
const heartbeatCall = replyResolver.mock.calls.find(
|
const heartbeatCall = replyResolver.mock.calls.find(
|
||||||
(call) => call[0]?.Body === HEARTBEAT_PROMPT,
|
(call) =>
|
||||||
|
call[0]?.Body === HEARTBEAT_PROMPT && call[0]?.MessageSid === "sid-main",
|
||||||
);
|
);
|
||||||
expect(heartbeatCall?.[0]?.From).toBe("+1555");
|
expect(heartbeatCall?.[0]?.From).toBe("+1555");
|
||||||
expect(heartbeatCall?.[0]?.To).toBe("+1555");
|
expect(heartbeatCall?.[0]?.To).toBe("+1555");
|
||||||
|
|||||||
Reference in New Issue
Block a user