You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Step 3.1: Stop using getComponent
in tests
This commit is contained in:
@@ -29,7 +29,6 @@ import { TEXT_NODE_TYPE } from "matrix-js-sdk/src/@types/extensible_events";
|
||||
import maplibregl from 'maplibre-gl';
|
||||
import { logger } from 'matrix-js-sdk/src/logger';
|
||||
|
||||
import sdk from "../../../skinned-sdk";
|
||||
import MLocationBody, {
|
||||
isSelfLocation,
|
||||
} from "../../../../src/components/views/messages/MLocationBody";
|
||||
@@ -44,8 +43,6 @@ jest.mock("../../../../src/utils/WellKnownUtils", () => ({
|
||||
getTileServerWellKnown: jest.fn(),
|
||||
}));
|
||||
|
||||
sdk.getComponent("views.messages.MLocationBody");
|
||||
|
||||
describe("MLocationBody", () => {
|
||||
describe("isSelfLocation", () => {
|
||||
it("Returns true for a full m.asset event", () => {
|
||||
|
Reference in New Issue
Block a user