mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Fix test assuming too much about the underlying calls
This commit is contained in:
parent
413b37d3dc
commit
f45510ed25
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user