mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -446,7 +446,9 @@ describe('Attachment', () => {
|
||||
};
|
||||
|
||||
const expectedAttachmentData = Bytes.fromString('Above us only sky');
|
||||
const writeNewAttachmentData = async (attachmentData: Uint8Array) => {
|
||||
const writeNewAttachmentData = async (
|
||||
attachmentData: Uint8Array<ArrayBuffer>
|
||||
) => {
|
||||
assert.deepEqual(attachmentData, expectedAttachmentData);
|
||||
return FAKE_LOCAL_ATTACHMENT;
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ describe('Message', () => {
|
||||
logger: LoggerType;
|
||||
}) => new Blob(),
|
||||
makeObjectUrl: (
|
||||
_data: Uint8Array | ArrayBuffer,
|
||||
_data: Uint8Array<ArrayBuffer> | ArrayBuffer,
|
||||
_contentType: MIME.MIMEType
|
||||
) => 'fake-object-url',
|
||||
makeVideoScreenshot: async (_params: {
|
||||
@@ -86,14 +86,14 @@ describe('Message', () => {
|
||||
revokeObjectUrl: (_objectUrl: string) => undefined,
|
||||
readAttachmentData: async (
|
||||
attachment: Partial<AddressableAttachmentType>
|
||||
): Promise<Uint8Array> => {
|
||||
): Promise<Uint8Array<ArrayBuffer>> => {
|
||||
assert.strictEqual(attachment.version, 2);
|
||||
return Buffer.from('old data');
|
||||
},
|
||||
writeNewAttachmentData: async (_data: Uint8Array) => {
|
||||
writeNewAttachmentData: async (_data: Uint8Array<ArrayBuffer>) => {
|
||||
return FAKE_LOCAL_ATTACHMENT;
|
||||
},
|
||||
writeNewStickerData: async (_data: Uint8Array) => ({
|
||||
writeNewStickerData: async (_data: Uint8Array<ArrayBuffer>) => ({
|
||||
version: 2,
|
||||
path: 'fake-sticker-path',
|
||||
size: 1,
|
||||
|
||||
Reference in New Issue
Block a user