mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:59:21 +00:00
test: tighten voice call event assertions
This commit is contained in:
parent
bd43b38096
commit
7c1ab59ee2
1 changed files with 5 additions and 8 deletions
|
|
@ -176,10 +176,11 @@ describe("processEvent (functional)", () => {
|
|||
|
||||
expect(ctx.activeCalls.size).toBe(0);
|
||||
expect(hangupCalls).toEqual([
|
||||
expect.objectContaining({
|
||||
{
|
||||
callId: "prov-dup",
|
||||
providerCallId: "prov-dup",
|
||||
reason: "hangup-bot",
|
||||
}),
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
@ -482,12 +483,8 @@ describe("processEvent (functional)", () => {
|
|||
processEvent(ctx, event);
|
||||
|
||||
const call = requireFirstActiveCall(ctx);
|
||||
expect(call.metadata).toEqual(
|
||||
expect.objectContaining({
|
||||
initialMessage: "Silver Fox Cards, how can I help?",
|
||||
numberRouteKey: "+15550002222",
|
||||
}),
|
||||
);
|
||||
expect(call.metadata?.initialMessage).toBe("Silver Fox Cards, how can I help?");
|
||||
expect(call.metadata?.numberRouteKey).toBe("+15550002222");
|
||||
});
|
||||
|
||||
it("deduplicates by dedupeKey even when event IDs differ", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue