From b6324a816f2b3d4c19a514c0eb51d9fcf52e70a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 28 Apr 2021 13:33:15 +0200 Subject: [PATCH] Use CallHandler correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- test/CallHandler-test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CallHandler-test.ts b/test/CallHandler-test.ts index f7e2c27993..4b326cde25 100644 --- a/test/CallHandler-test.ts +++ b/test/CallHandler-test.ts @@ -172,7 +172,7 @@ describe('CallHandler', () => { let callRoomChangeEventCount = 0; const roomChangePromise = new Promise(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.