Fix imports for tests
This doesn't fix the fact that someone called it "peg".
This commit is contained in:
parent
4dfbce3108
commit
54f3288dea
5 changed files with 6 additions and 7 deletions
|
@ -21,7 +21,7 @@ import { configure, mount } from "enzyme";
|
|||
|
||||
import sdk from "../../../skinned-sdk";
|
||||
import {mkEvent, mkStubRoom} from "../../../test-utils";
|
||||
import MatrixClientPeg from "../../../../src/MatrixClientPeg";
|
||||
import {MatrixClientPeg} from "../../../../src/MatrixClientPeg";
|
||||
import * as languageHandler from "../../../../src/languageHandler";
|
||||
|
||||
const TextualBody = sdk.getComponent("views.messages.TextualBody");
|
||||
|
|
|
@ -4,7 +4,7 @@ import ReactDOM from 'react-dom';
|
|||
import jest from 'jest-mock';
|
||||
import * as testUtils from '../../../test-utils';
|
||||
import sdk from '../../../skinned-sdk';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
import {MatrixClientPeg} from '../../../../src/MatrixClientPeg';
|
||||
import SettingsStore from '../../../../src/settings/SettingsStore';
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import RoomViewStore from '../../src/stores/RoomViewStore';
|
||||
|
||||
import peg from '../../src/MatrixClientPeg';
|
||||
import {MatrixClientPeg as peg} from '../../src/MatrixClientPeg';
|
||||
|
||||
import * as testUtils from '../test-utils';
|
||||
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
import React from 'react';
|
||||
import peg from '../src/MatrixClientPeg';
|
||||
import {MatrixClientPeg as peg} from '../src/MatrixClientPeg';
|
||||
import dis from '../src/dispatcher';
|
||||
import jssdk from 'matrix-js-sdk';
|
||||
import {makeType} from "../src/utils/TypeUtils";
|
||||
import {ValidatedServerConfig} from "../src/utils/AutoDiscoveryUtils";
|
||||
import ShallowRenderer from 'react-test-renderer/shallow';
|
||||
import MatrixClientContext from "../src/contexts/MatrixClientContext";
|
||||
const MatrixEvent = jssdk.MatrixEvent;
|
||||
import {MatrixEvent} from "matrix-js-sdk/src/models/event";
|
||||
|
||||
export function getRenderer() {
|
||||
// Old: ReactTestUtils.createRenderer();
|
||||
|
|
|
@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import peg from '../../../src/MatrixClientPeg';
|
||||
import {MatrixClientPeg as peg} from '../../../src/MatrixClientPeg';
|
||||
import {
|
||||
makeGroupPermalink,
|
||||
makeRoomPermalink,
|
||||
|
|
Loading…
Reference in a new issue