You've already forked matrix-react-sdk
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:
committed by
GitHub
parent
5d9f5ccf0b
commit
2f2067e434
@@ -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", () => {
|
||||
|
Reference in New Issue
Block a user