1
0
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:
Travis Ralston
2020-07-07 15:58:15 -06:00
parent 044c223899
commit 85af3ebcc0

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