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

Add unit tests for hangup / reject (#2606)

* Add unit tests for hangup / reject

Fixes https://github.com/vector-im/element-call/issues/537

* Fix some bugs where we carried on with the call after it had been ended
This commit is contained in:
David Baker
2022-08-22 13:29:54 +01:00
committed by GitHub
parent 45e56f8cc3
commit 92cd84fc0c
3 changed files with 112 additions and 25 deletions

View File

@@ -109,6 +109,12 @@ export class MockRTCPeerConnection {
sdp: DUMMY_SDP,
});
}
createAnswer() {
return Promise.resolve({
type: 'answer',
sdp: DUMMY_SDP,
});
}
setRemoteDescription() {
return Promise.resolve();
}