Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -65,13 +65,11 @@ describe("<VoiceRecordComposerTile/>", () => {
recorder: mockRecorder,
});
mocked(doMaybeLocalRoomAction).mockImplementation(<T extends {}>(
roomId: string,
fn: (actualRoomId: string) => Promise<T>,
_client?: MatrixClient,
) => {
return fn(roomId);
});
mocked(doMaybeLocalRoomAction).mockImplementation(
<T extends {}>(roomId: string, fn: (actualRoomId: string) => Promise<T>, _client?: MatrixClient) => {
return fn(roomId);
},
);
});
describe("send", () => {
@ -81,25 +79,21 @@ describe("<VoiceRecordComposerTile/>", () => {
"body": "Voice message",
"file": undefined,
"info": {
"duration": 1337000,
"mimetype": "audio/ogg",
"size": undefined,
duration: 1337000,
mimetype: "audio/ogg",
size: undefined,
},
"msgtype": MsgType.Audio,
"org.matrix.msc1767.audio": {
"duration": 1337000,
"waveform": [
1434,
2560,
3686,
],
duration: 1337000,
waveform: [1434, 2560, 3686],
},
"org.matrix.msc1767.file": {
"file": undefined,
"mimetype": "audio/ogg",
"name": "Voice message.ogg",
"size": undefined,
"url": "mxc://example.com/voice",
file: undefined,
mimetype: "audio/ogg",
name: "Voice message.ogg",
size: undefined,
url: "mxc://example.com/voice",
},
"org.matrix.msc1767.text": "Voice message",
"org.matrix.msc3245.voice": {},