You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Step 3.1: Stop using getComponent
in tests
This commit is contained in:
@@ -2,11 +2,11 @@ import React from 'react';
|
||||
import ReactTestUtils from 'react-dom/test-utils';
|
||||
import ShallowRenderer from "react-test-renderer/shallow";
|
||||
|
||||
import sdk from '../../../skinned-sdk';
|
||||
import * as testUtils from '../../../test-utils';
|
||||
import _EventListSummary from "../../../../src/components/views/elements/EventListSummary";
|
||||
|
||||
// Give ELS a matrixClient in its child context
|
||||
const EventListSummary = testUtils.wrapInMatrixClientContext(sdk.getComponent('views.elements.EventListSummary'));
|
||||
const EventListSummary = testUtils.wrapInMatrixClientContext(_EventListSummary);
|
||||
|
||||
describe('EventListSummary', function() {
|
||||
// Generate dummy event tiles for use in simulating an expanded MELS
|
||||
|
Reference in New Issue
Block a user