From e951a22d31bff725ac2319c85d32d6c44aec30ab Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 Sep 2018 17:09:14 +0200 Subject: [PATCH] fix tests --- test/components/views/rooms/RoomList-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/components/views/rooms/RoomList-test.js b/test/components/views/rooms/RoomList-test.js index fbb2dd4af9..e512b96ba8 100644 --- a/test/components/views/rooms/RoomList-test.js +++ b/test/components/views/rooms/RoomList-test.js @@ -74,6 +74,7 @@ describe('RoomList', () => { // Mock joined member myMember = new RoomMember(movingRoomId, myUserId); myMember.membership = 'join'; + movingRoom.updateMyMembership('join'); movingRoom.getMember = (userId) => ({ [client.credentials.userId]: myMember, }[userId]); @@ -81,6 +82,7 @@ describe('RoomList', () => { otherRoom = createRoom({name: 'Other room'}); myOtherMember = new RoomMember(otherRoom.roomId, myUserId); myOtherMember.membership = 'join'; + otherRoom.updateMyMembership('join'); otherRoom.getMember = (userId) => ({ [client.credentials.userId]: myOtherMember, }[userId]);