mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-10 23:10:46 +08:00
feat(delivery): preserve text format intent
This commit is contained in:
parent
73f262711b
commit
dd66f5cbe1
5 changed files with 177 additions and 12 deletions
|
|
@ -330,3 +330,17 @@ test('mixed artifacts preserve order and merge existing receipt semantics', asyn
|
|||
await assertReleased(image);
|
||||
await assertReleased(file);
|
||||
});
|
||||
|
||||
test('a definitively failed base delivery is not treated as user-visible', async () => {
|
||||
const delivery = await deliverOutboundArtifacts({
|
||||
baseReceipt: createDeliveryReceipt({
|
||||
deliveryId: 'failed-text',
|
||||
presentation: 'telegram-rich-final',
|
||||
deliveryOutcome: 'failed',
|
||||
reason: 'telegram-provider-rejected',
|
||||
}),
|
||||
channelKey: 'telegram',
|
||||
});
|
||||
|
||||
assert.equal(delivery.userVisible, false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue