Change settings to true by default (#25)

This commit is contained in:
Florian Duros 2024-09-11 13:16:52 +02:00 committed by GitHub
parent 07125f554d
commit 03004a55fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 5 additions and 6 deletions

View file

@ -571,7 +571,10 @@ export function mkStubRoom(
name: string | undefined,
client: MatrixClient | undefined,
): Room {
const stubTimeline = { getEvents: (): MatrixEvent[] => [] } as unknown as EventTimeline;
const stubTimeline = {
getEvents: (): MatrixEvent[] => [],
getState: (): RoomState | undefined => undefined,
} as unknown as EventTimeline;
return {
canInvite: jest.fn(),
client,