Add MatrixClientPeg::safeGet and use it in tests (#10985)
This commit is contained in:
@@ -47,7 +47,7 @@ describe("RightPanel", () => {
|
||||
let RightPanel: React.ComponentType<React.ComponentProps<typeof RightPanelBase>>;
|
||||
beforeEach(() => {
|
||||
stubClient();
|
||||
cli = mocked(MatrixClientPeg.get());
|
||||
cli = mocked(MatrixClientPeg.safeGet());
|
||||
DMRoomMap.makeShared(cli);
|
||||
context = new SdkContextClass();
|
||||
context.client = cli;
|
||||
|
||||
Reference in New Issue
Block a user