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
use LocationAssetType (#7965)
* use LocationAssetType Signed-off-by: Kerry Archibald <kerrya@element.io> * center icon better Signed-off-by: Kerry Archibald <kerrya@element.io> * remove debug Signed-off-by: Kerry Archibald <kerrya@element.io> * retrigger all builds Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
import { makeLocationContent } from "matrix-js-sdk/src/content-helpers";
|
||||
import {
|
||||
ASSET_NODE_TYPE,
|
||||
LocationAssetType,
|
||||
ILocationContent,
|
||||
LOCATION_EVENT_TYPE,
|
||||
TIMESTAMP_NODE_TYPE,
|
||||
@@ -235,7 +236,7 @@ describe("MLocationBody", () => {
|
||||
});
|
||||
|
||||
it("Returns false for an unknown asset type", () => {
|
||||
const content = makeLocationContent("", "", 0, "", "org.example.unknown");
|
||||
const content = makeLocationContent("", "", 0, "", "org.example.unknown" as unknown as LocationAssetType);
|
||||
expect(isSelfLocation(content)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user