diff --git a/test/RoomNotifs-test.ts b/test/RoomNotifs-test.ts index 963bfd77ed..04ee9e693b 100644 --- a/test/RoomNotifs-test.ts +++ b/test/RoomNotifs-test.ts @@ -113,10 +113,10 @@ describe("RoomNotifs test", () => { event: true, type: "m.room.create", room: ROOM_ID, - user: client.getUserId()!, + user: "@zoe:localhost", content: { ...(predecessorId ? { predecessor: { room_id: predecessorId, event_id: "$someevent" } } : {}), - creator: client.getUserId(), + creator: "@zoe:localhost", room_version: "5", }, ts: Date.now(), @@ -128,7 +128,7 @@ describe("RoomNotifs test", () => { event: true, type: EventType.RoomPredecessor, room: ROOM_ID, - user: client.getUserId()!, + user: "@zoe:localhost", skey: "", content: { predecessor_room_id: predecessorId, diff --git a/test/components/views/settings/Notifications-test.tsx b/test/components/views/settings/Notifications-test.tsx index aedb96fb13..367ab3085f 100644 --- a/test/components/views/settings/Notifications-test.tsx +++ b/test/components/views/settings/Notifications-test.tsx @@ -226,6 +226,7 @@ describe("", () => { setAccountData: jest.fn(), sendReadReceipt: jest.fn(), supportsThreads: jest.fn().mockReturnValue(true), + isInitialSyncComplete: jest.fn().mockReturnValue(false), }); mockClient.getPushRules.mockResolvedValue(pushRules); diff --git a/test/stores/RoomViewStore-test.ts b/test/stores/RoomViewStore-test.ts index d97fd8ad69..87d549c370 100644 --- a/test/stores/RoomViewStore-test.ts +++ b/test/stores/RoomViewStore-test.ts @@ -94,7 +94,7 @@ describe("RoomViewStore", function () { getDeviceId: jest.fn().mockReturnValue("ABC123"), sendStateEvent: jest.fn().mockResolvedValue({}), supportsThreads: jest.fn(), - isInitialSyncComplete: jest.fn(), + isInitialSyncComplete: jest.fn().mockResolvedValue(false), relations: jest.fn(), }); const room = new Room(roomId, mockClient, userId);