mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 12:45:11 +08:00
Use CallHandler correctly
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
653591e806
commit
b6324a816f
@ -172,7 +172,7 @@ describe('CallHandler', () => {
|
||||
|
||||
let callRoomChangeEventCount = 0;
|
||||
const roomChangePromise = new Promise<void>(resolve => {
|
||||
CallHandler.sharedInstance().addListener(CallHandlerEvent.CallChangeRoom, () => {
|
||||
callHandler.addListener(CallHandlerEvent.CallChangeRoom, () => {
|
||||
++callRoomChangeEventCount;
|
||||
resolve();
|
||||
});
|
||||
@ -200,7 +200,7 @@ describe('CallHandler', () => {
|
||||
|
||||
await roomChangePromise;
|
||||
dis.unregister(dispatchHandle);
|
||||
CallHandler.sharedInstance().removeAllListeners();
|
||||
callHandler.removeAllListeners();
|
||||
|
||||
// If everything's gone well, we should have seen only one room change
|
||||
// event and the call should now be in user 3's room.
|
||||
|
Loading…
Reference in New Issue
Block a user