Fix right panel data flow (#7811)
This commit is contained in:
parent
78524bddce
commit
0dc1355441
14 changed files with 254 additions and 74 deletions
|
@ -1,6 +1,5 @@
|
|||
import React from 'react';
|
||||
import EventEmitter from "events";
|
||||
import ShallowRenderer from 'react-test-renderer/shallow';
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
import { JoinRule } from 'matrix-js-sdk/src/@types/partials';
|
||||
|
||||
|
@ -10,11 +9,6 @@ import { makeType } from "../src/utils/TypeUtils";
|
|||
import { ValidatedServerConfig } from "../src/utils/AutoDiscoveryUtils";
|
||||
import MatrixClientContext from "../src/contexts/MatrixClientContext";
|
||||
|
||||
export function getRenderer() {
|
||||
// Old: ReactTestUtils.createRenderer();
|
||||
return new ShallowRenderer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Stub out the MatrixClient, and configure the MatrixClientPeg object to
|
||||
* return it when get() is called.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue