Retry outbound "normal" messages for up to a day
This commit is contained in:
parent
62cf51c060
commit
a85dd1be36
30 changed files with 1414 additions and 603 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
SendStateByConversationId,
|
||||
SendStatus,
|
||||
isDelivered,
|
||||
isFailed,
|
||||
isMessageJustForMe,
|
||||
isRead,
|
||||
isSent,
|
||||
|
@ -106,6 +107,20 @@ describe('message send state utilities', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('isFailed', () => {
|
||||
it('returns true for failed statuses', () => {
|
||||
assert.isTrue(isFailed(SendStatus.Failed));
|
||||
});
|
||||
|
||||
it('returns false for non-failed statuses', () => {
|
||||
assert.isFalse(isFailed(SendStatus.Viewed));
|
||||
assert.isFalse(isFailed(SendStatus.Read));
|
||||
assert.isFalse(isFailed(SendStatus.Delivered));
|
||||
assert.isFalse(isFailed(SendStatus.Sent));
|
||||
assert.isFalse(isFailed(SendStatus.Pending));
|
||||
});
|
||||
});
|
||||
|
||||
describe('someSendStatus', () => {
|
||||
it('returns false if there are no send states', () => {
|
||||
const alwaysTrue = () => true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue