mirror of https://github.com/vector-im/riot-web
Fix predecessor tests broken (#10123)
parent
c4a6cc8e65
commit
8fe5714673
|
@ -113,10 +113,10 @@ describe("RoomNotifs test", () => {
|
||||||
event: true,
|
event: true,
|
||||||
type: "m.room.create",
|
type: "m.room.create",
|
||||||
room: ROOM_ID,
|
room: ROOM_ID,
|
||||||
user: client.getUserId()!,
|
user: "@zoe:localhost",
|
||||||
content: {
|
content: {
|
||||||
...(predecessorId ? { predecessor: { room_id: predecessorId, event_id: "$someevent" } } : {}),
|
...(predecessorId ? { predecessor: { room_id: predecessorId, event_id: "$someevent" } } : {}),
|
||||||
creator: client.getUserId(),
|
creator: "@zoe:localhost",
|
||||||
room_version: "5",
|
room_version: "5",
|
||||||
},
|
},
|
||||||
ts: Date.now(),
|
ts: Date.now(),
|
||||||
|
@ -128,7 +128,7 @@ describe("RoomNotifs test", () => {
|
||||||
event: true,
|
event: true,
|
||||||
type: EventType.RoomPredecessor,
|
type: EventType.RoomPredecessor,
|
||||||
room: ROOM_ID,
|
room: ROOM_ID,
|
||||||
user: client.getUserId()!,
|
user: "@zoe:localhost",
|
||||||
skey: "",
|
skey: "",
|
||||||
content: {
|
content: {
|
||||||
predecessor_room_id: predecessorId,
|
predecessor_room_id: predecessorId,
|
||||||
|
|
|
@ -226,6 +226,7 @@ describe("<Notifications />", () => {
|
||||||
setAccountData: jest.fn(),
|
setAccountData: jest.fn(),
|
||||||
sendReadReceipt: jest.fn(),
|
sendReadReceipt: jest.fn(),
|
||||||
supportsThreads: jest.fn().mockReturnValue(true),
|
supportsThreads: jest.fn().mockReturnValue(true),
|
||||||
|
isInitialSyncComplete: jest.fn().mockReturnValue(false),
|
||||||
});
|
});
|
||||||
mockClient.getPushRules.mockResolvedValue(pushRules);
|
mockClient.getPushRules.mockResolvedValue(pushRules);
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ describe("RoomViewStore", function () {
|
||||||
getDeviceId: jest.fn().mockReturnValue("ABC123"),
|
getDeviceId: jest.fn().mockReturnValue("ABC123"),
|
||||||
sendStateEvent: jest.fn().mockResolvedValue({}),
|
sendStateEvent: jest.fn().mockResolvedValue({}),
|
||||||
supportsThreads: jest.fn(),
|
supportsThreads: jest.fn(),
|
||||||
isInitialSyncComplete: jest.fn(),
|
isInitialSyncComplete: jest.fn().mockResolvedValue(false),
|
||||||
relations: jest.fn(),
|
relations: jest.fn(),
|
||||||
});
|
});
|
||||||
const room = new Room(roomId, mockClient, userId);
|
const room = new Room(roomId, mockClient, userId);
|
||||||
|
|
Loading…
Reference in New Issue