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