Lie about DMs in tests

pull/21833/head
Travis Ralston 2020-07-07 15:58:15 -06:00
parent 044c223899
commit 85af3ebcc0
1 changed files with 5 additions and 0 deletions

View File

@ -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);