mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
fix tests
This commit is contained in:
parent
8c4f4765df
commit
e951a22d31
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ describe('RoomList', () => {
|
||||||
// Mock joined member
|
// Mock joined member
|
||||||
myMember = new RoomMember(movingRoomId, myUserId);
|
myMember = new RoomMember(movingRoomId, myUserId);
|
||||||
myMember.membership = 'join';
|
myMember.membership = 'join';
|
||||||
|
movingRoom.updateMyMembership('join');
|
||||||
movingRoom.getMember = (userId) => ({
|
movingRoom.getMember = (userId) => ({
|
||||||
[client.credentials.userId]: myMember,
|
[client.credentials.userId]: myMember,
|
||||||
}[userId]);
|
}[userId]);
|
||||||
|
@ -81,6 +82,7 @@ describe('RoomList', () => {
|
||||||
otherRoom = createRoom({name: 'Other room'});
|
otherRoom = createRoom({name: 'Other room'});
|
||||||
myOtherMember = new RoomMember(otherRoom.roomId, myUserId);
|
myOtherMember = new RoomMember(otherRoom.roomId, myUserId);
|
||||||
myOtherMember.membership = 'join';
|
myOtherMember.membership = 'join';
|
||||||
|
otherRoom.updateMyMembership('join');
|
||||||
otherRoom.getMember = (userId) => ({
|
otherRoom.getMember = (userId) => ({
|
||||||
[client.credentials.userId]: myOtherMember,
|
[client.credentials.userId]: myOtherMember,
|
||||||
}[userId]);
|
}[userId]);
|
||||||
|
|
Loading…
Reference in a new issue