Add staged sticker replies to FunPicker

This commit is contained in:
ayumi-signal
2026-07-09 10:32:56 -07:00
committed by GitHub
parent a3661965bc
commit e6fa173bc3
14 changed files with 192 additions and 7 deletions
@@ -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: [