Apply strictNullChecks to src/utils/local-room.ts (#10915)

* Stricity local room

* Handle error
This commit is contained in:
Michael Weimann
2023-06-01 11:55:26 +00:00
committed by GitHub
parent b5727cb463
commit ca53b11aa9
4 changed files with 45 additions and 14 deletions
+5 -1
View File
@@ -196,7 +196,11 @@ describe("direct-messages", () => {
const result = await dmModule.createRoomFromLocalRoom(mockClient, localRoom);
expect(result).toBe(room1.roomId);
expect(localRoom.state).toBe(LocalRoomState.CREATING);
expect(waitForRoomReadyAndApplyAfterCreateCallbacks).toHaveBeenCalledWith(mockClient, localRoom);
expect(waitForRoomReadyAndApplyAfterCreateCallbacks).toHaveBeenCalledWith(
mockClient,
localRoom,
room1.roomId,
);
});
});
});