1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Add support for EventTarget to useEventEmitter() (#9060)

This commit is contained in:
Šimon Brandner
2022-07-29 11:32:03 +02:00
committed by GitHub
parent bd30b75f79
commit 6a8dd23d29
2 changed files with 57 additions and 2 deletions

View File

@ -382,6 +382,7 @@ export function mkStubRoom(roomId: string = null, name: string, client: MatrixCl
members: {},
getJoinRule: jest.fn().mockReturnValue(JoinRule.Invite),
on: jest.fn(),
off: jest.fn(),
} as unknown as RoomState,
tags: {},
setBlacklistUnverifiedDevices: jest.fn(),