1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

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

* Stricity local room

* Handle error
This commit is contained in:
Michael Weimann
2023-06-01 13:55:26 +02:00
committed by GitHub
parent b5727cb463
commit ca53b11aa9
4 changed files with 45 additions and 14 deletions

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