From 755dfe72acc1778fd1563744cb1c701c3f16f1cd Mon Sep 17 00:00:00 2001 From: Diogo Ortega Date: Mon, 26 Jan 2026 14:40:03 +0000 Subject: [PATCH] fix: update test expectation for backwards-compatible isDeliveryContextExpired --- src/utils/delivery-context.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/delivery-context.test.ts b/src/utils/delivery-context.test.ts index 6000d2581..825a02ae8 100644 --- a/src/utils/delivery-context.test.ts +++ b/src/utils/delivery-context.test.ts @@ -110,8 +110,9 @@ describe("isDeliveryContextExpired", () => { expect(isDeliveryContextExpired(undefined)).toBe(true); }); - it("returns true for context without updatedAt", () => { - expect(isDeliveryContextExpired({ channel: "whatsapp", to: "+1555000001" })).toBe(true); + it("returns false for context without updatedAt (backwards compatible)", () => { + // Contexts without timestamps are considered valid (not expired) for backwards compatibility + expect(isDeliveryContextExpired({ channel: "whatsapp", to: "+1555000001" })).toBe(false); }); it("returns false for fresh context within TTL", () => {