Fix test assuming too much about the underlying calls

pull/21833/head
Michael Telatynski 2021-02-19 13:08:30 +00:00
parent 413b37d3dc
commit f45510ed25
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ describe('MemberList', () => {
};
memberListRoom.currentState = {
members: {},
getStateEvents: () => [], // ignore 3pid invites
getStateEvents: (eventType, stateKey) => stateKey === undefined ? [] : null, // ignore 3pid invites
};
for (const member of [...adminUsers, ...moderatorUsers, ...defaultUsers]) {
memberListRoom.currentState.members[member.userId] = member;