From f45510ed2593625cfdb561c7cfc631cea816154a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 19 Feb 2021 13:08:30 +0000 Subject: [PATCH] Fix test assuming too much about the underlying calls --- test/components/views/rooms/MemberList-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/components/views/rooms/MemberList-test.js b/test/components/views/rooms/MemberList-test.js index 24b6391c93..068d358dcd 100644 --- a/test/components/views/rooms/MemberList-test.js +++ b/test/components/views/rooms/MemberList-test.js @@ -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;