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:
@@ -18,7 +18,6 @@ import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
|
||||
import '../../../skinned-sdk';
|
||||
import LiveDurationDropdown, { DEFAULT_DURATION_MS }
|
||||
from '../../../../src/components/views/location/LiveDurationDropdown';
|
||||
import { findById, mockPlatformPeg } from '../../../test-utils';
|
||||
|
@@ -14,11 +14,8 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import sdk from "../../../skinned-sdk";
|
||||
import { textForLocation } from "../../../../src/components/views/location/shareLocation";
|
||||
|
||||
sdk.getComponent("LocationPicker");
|
||||
|
||||
describe("LocationButton", () => {
|
||||
describe("textForLocation", () => {
|
||||
it("with no description, simply dumps URI and date", () => {
|
||||
|
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
|
||||
import '../../../skinned-sdk';
|
||||
import { MapError } from '../../../../src/components/views/location/MapError';
|
||||
import { LocationShareError } from '../../../../src/utils/location';
|
||||
|
||||
|
Reference in New Issue
Block a user