1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

Fix group call tests getting stuck (#2689)

This commit is contained in:
Šimon Brandner
2022-09-22 17:06:01 +02:00
committed by GitHub
parent 72a6ec0dd3
commit 2a0ffe1223

View File

@ -161,11 +161,17 @@ describe('Group Call', function() {
});
it("does not initialize local call feed, if it already is", async () => {
room.currentState.members[FAKE_USER_ID_1] = {
userId: FAKE_USER_ID_1,
} as unknown as RoomMember;
await groupCall.initLocalCallFeed();
jest.spyOn(groupCall, "initLocalCallFeed");
await groupCall.enter();
expect(groupCall.initLocalCallFeed).not.toHaveBeenCalled();
groupCall.leave();
});
it("sends state event to room when creating", async () => {