fix: update test expectation for backwards-compatible isDeliveryContextExpired

This commit is contained in:
Diogo Ortega 2026-01-26 14:40:03 +00:00
parent db386bef7e
commit 755dfe72ac

View File

@ -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", () => {