Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit df03112

Browse files
author
Germain
authored
Fix mock client missing user functions (#9887)
1 parent 880a86c commit df03112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/components/views/settings/Notifications-test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { fireEvent, getByTestId, render, screen, waitFor } from "@testing-librar
3030
import Notifications from "../../../../src/components/views/settings/Notifications";
3131
import SettingsStore from "../../../../src/settings/SettingsStore";
3232
import { StandardActions } from "../../../../src/notifications/StandardActions";
33-
import { getMockClientWithEventEmitter, mkMessage } from "../../../test-utils";
33+
import { getMockClientWithEventEmitter, mkMessage, mockClientMethodsUser } from "../../../test-utils";
3434

3535
// don't pollute test output with error logs from mock rejections
3636
jest.mock("matrix-js-sdk/src/logger");
@@ -205,6 +205,7 @@ describe("<Notifications />", () => {
205205
};
206206

207207
const mockClient = getMockClientWithEventEmitter({
208+
...mockClientMethodsUser(),
208209
getPushRules: jest.fn(),
209210
getPushers: jest.fn(),
210211
getThreePids: jest.fn(),

0 commit comments

Comments
 (0)