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

Fix home/all rooms context menu in space panel (#11350)

* Fix home/all rooms context menu in space panel

* Fix tests
This commit is contained in:
Michael Telatynski
2023-08-01 16:26:14 +01:00
committed by GitHub
parent 5d9f5ccf0b
commit 2f2067e434
3 changed files with 9 additions and 6 deletions

View File

@@ -56,6 +56,7 @@ describe("<SpaceContextMenu />", () => {
const mockClient = {
getUserId: jest.fn().mockReturnValue(userId),
getSafeUserId: jest.fn().mockReturnValue(userId),
} as unknown as Mocked<MatrixClient>;
const makeMockSpace = (props = {}) =>
@@ -86,6 +87,7 @@ describe("<SpaceContextMenu />", () => {
beforeEach(() => {
jest.resetAllMocks();
mockClient.getUserId.mockReturnValue(userId);
mockClient.getSafeUserId.mockReturnValue(userId);
});
it("renders menu correctly", () => {