You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Lie about DMs in tests
This commit is contained in:
@ -56,6 +56,11 @@ describe('RoomList', () => {
|
||||
|
||||
DMRoomMap.makeShared();
|
||||
|
||||
// Lie to the room list store about DMs not existing
|
||||
DMRoomMap.getUserIdForRoomId = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
parentDiv = document.createElement('div');
|
||||
document.body.appendChild(parentDiv);
|
||||
|
||||
|
Reference in New Issue
Block a user