Send related emoji along with Sticker, fix SendMessage types
This commit is contained in:
parent
3c91dce993
commit
bd380086a4
35 changed files with 522 additions and 376 deletions
15
ts/test-both/helpers/fakeAttachment.ts
Normal file
15
ts/test-both/helpers/fakeAttachment.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { AttachmentType } from '../../types/Attachment';
|
||||
import { IMAGE_JPEG } from '../../types/MIME';
|
||||
|
||||
export const fakeAttachment = (
|
||||
overrides: Partial<AttachmentType> = {}
|
||||
): AttachmentType => ({
|
||||
contentType: IMAGE_JPEG,
|
||||
width: 800,
|
||||
height: 600,
|
||||
size: 10304,
|
||||
...overrides,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue