Extract createVoiceMessageContent (#9322)

This commit is contained in:
Michael Weimann 2022-09-29 21:06:49 +02:00 committed by GitHub
parent 3e076c8246
commit 7a33818bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 143 additions and 33 deletions

View file

@ -57,7 +57,7 @@ describe("<VoiceRecordComposerTile/>", () => {
durationSeconds: 1337,
contentType: "audio/ogg",
getPlayback: () => ({
thumbnailWaveform: [],
thumbnailWaveform: [1.4, 2.5, 3.6],
}),
} as unknown as VoiceRecording;
voiceRecordComposerTile = mount(<VoiceRecordComposerTile {...props} />);
@ -88,7 +88,11 @@ describe("<VoiceRecordComposerTile/>", () => {
"msgtype": MsgType.Audio,
"org.matrix.msc1767.audio": {
"duration": 1337000,
"waveform": [],
"waveform": [
1434,
2560,
3686,
],
},
"org.matrix.msc1767.file": {
"file": undefined,