1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

Add basic creation / entering tests for group calls (#2575)

* Add basic creation / entering tests for group calls

* Missing space

Co-authored-by: Robin <robin@robin.town>

* Assert more of the group call member event

and also move call leaving to a finally so it doesn't leaving a call
hagning if it fails.

Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
David Baker
2022-08-09 13:43:02 +01:00
committed by GitHub
parent 88ce017333
commit 0b8de251bf
2 changed files with 104 additions and 1 deletions

View File

@@ -58,9 +58,13 @@ class MockMediaStreamAudioSourceNode {
connect() {}
}
class MockAnalyser {
getFloatFrequencyData() { return 0.0; }
}
export class MockAudioContext {
constructor() {}
createAnalyser() { return {}; }
createAnalyser() { return new MockAnalyser(); }
createMediaStreamSource() { return new MockMediaStreamAudioSourceNode(); }
close() {}
}
@@ -154,4 +158,5 @@ export class MockMediaHandler {
}
stopUserMediaStream() { }
hasAudioDevice() { return true; }
stopAllStreams() {}
}