zalo: update pairing-store read assertion to scoped params object

This commit is contained in:
bmendonca3
2026-03-01 01:07:32 -07:00
committed by Peter Steinberger
parent 6b7d3fb011
commit f39882d57e

View File

@@ -336,7 +336,12 @@ describe("handleZaloWebhookRequest", () => {
unregister(); unregister();
} }
expect(readAllowFromStore).toHaveBeenCalledWith("zalo", undefined, "work"); expect(readAllowFromStore).toHaveBeenCalledWith(
expect.objectContaining({
channel: "zalo",
accountId: "work",
}),
);
expect(upsertPairingRequest).toHaveBeenCalledWith( expect(upsertPairingRequest).toHaveBeenCalledWith(
expect.objectContaining({ expect.objectContaining({
channel: "zalo", channel: "zalo",