fix: update test expectation for backwards-compatible isDeliveryContextExpired
This commit is contained in:
parent
db386bef7e
commit
755dfe72ac
@ -110,8 +110,9 @@ describe("isDeliveryContextExpired", () => {
|
|||||||
expect(isDeliveryContextExpired(undefined)).toBe(true);
|
expect(isDeliveryContextExpired(undefined)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns true for context without updatedAt", () => {
|
it("returns false for context without updatedAt (backwards compatible)", () => {
|
||||||
expect(isDeliveryContextExpired({ channel: "whatsapp", to: "+1555000001" })).toBe(true);
|
// 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", () => {
|
it("returns false for fresh context within TTL", () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user