mirror of https://github.com/vector-im/riot-web
Add getCanonicalAlias to mock
parent
cf8c98e076
commit
6670c727a4
|
@ -34,6 +34,7 @@ function mockRoom(roomId, members, serverACL) {
|
|||
|
||||
return {
|
||||
roomId,
|
||||
getCanonicalAlias: () => roomId,
|
||||
getJoinedMembers: () => members,
|
||||
getMember: (userId) => members.find(m => m.userId === userId),
|
||||
currentState: {
|
||||
|
|
Loading…
Reference in New Issue