mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Skip invalid attachments and make function sync
This commit is contained in:
@@ -245,7 +245,7 @@ describe('Attachment', () => {
|
||||
});
|
||||
|
||||
describe('removeSchemaVersion', () => {
|
||||
it('should remove existing schema version', async () => {
|
||||
it('should remove existing schema version', () => {
|
||||
const input = {
|
||||
contentType: 'image/jpeg',
|
||||
data: null,
|
||||
@@ -261,7 +261,7 @@ describe('Attachment', () => {
|
||||
size: 1111,
|
||||
};
|
||||
|
||||
const actual = await Attachment.removeSchemaVersion(input);
|
||||
const actual = Attachment.removeSchemaVersion(input);
|
||||
assert.deepEqual(actual, expected);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user