it("suppresses when any payload is a heartbeat ack and no media is present", () => {
expect(
shouldSkipHeartbeatOnlyDelivery(
[{ text: "Checked inbox and calendar." }, { text: "HEARTBEAT_OK" }], 300,
),
).toBe(true);
});
it("does not suppress when media is present", () => {
expect(
shouldSkipHeartbeatOnlyDelivery(
[{ text: "HEARTBEAT_OK", mediaUrl: "https://example.com/image.png" }], 300,
),
).toBe(false);
});
});
it("enqueues only when delivery was requested but did not run", () => {
expect(
shouldEnqueueCronMainSummary({
summaryText: "HEARTBEAT_OK",
deliveryRequested: true,
delivered: false,
deliveryAttempted: false,
suppressMainSummary: false,
isCronSystemEvent: isSystemEvent,
}),
).toBe(true);
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.