mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-28 07:57:21 +01:00
Add staged sticker replies to FunPicker
This commit is contained in:
@@ -126,6 +126,25 @@ describe('processDataMessage', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('should process attachments with null fileName', () => {
|
||||
const out = check({
|
||||
attachments: [
|
||||
{
|
||||
...UNPROCESSED_ATTACHMENT,
|
||||
fileName: null,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
assert.deepStrictEqual(out.attachments, [
|
||||
{
|
||||
...PROCESSED_ATTACHMENT,
|
||||
fileName: undefined,
|
||||
downloadPath: 'random-path',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('should process attachments with 0 cdnId', () => {
|
||||
const out = check({
|
||||
attachments: [
|
||||
|
||||
Reference in New Issue
Block a user