File tree Expand file tree Collapse file tree
unit-tests/components/structures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ export function stubClient(): MatrixClient {
7676 peg . get = ( ) => client ;
7777 peg . safeGet = ( ) => client ;
7878 MatrixClientBackedSettingsHandler . matrixClient = client ;
79- MatrixClientBackedController . matrixClient = client ;
8079 return client ;
8180}
8281
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import ErrorDialog from "../../../../src/components/views/dialogs/ErrorDialog.ts
7171import * as pinnedEventHooks from "../../../../src/hooks/usePinnedEvents" ;
7272import { TimelineRenderingType } from "../../../../src/contexts/RoomContext" ;
7373import { ModuleApi } from "../../../../src/modules/Api" ;
74+ import MatrixClientBackedController from "../../../../src/settings/controllers/MatrixClientBackedController.ts" ;
7475
7576// Used by group calls
7677jest . spyOn ( MediaDeviceHandler , "getDevices" ) . mockResolvedValue ( {
@@ -92,6 +93,7 @@ describe("RoomView", () => {
9293 beforeEach ( ( ) => {
9394 mockPlatformPeg ( { reload : ( ) => { } } ) ;
9495 cli = mocked ( stubClient ( ) ) ;
96+ MatrixClientBackedController . matrixClient = cli ;
9597
9698 const roomName = ( expect . getState ( ) . currentTestName ?? "" ) . replace ( / [ ^ a - z A - Z 0 - 9 ] / g, "" ) . toLowerCase ( ) ;
9799
You can’t perform that action at this time.
0 commit comments