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:
parent
3572b36648
commit
7aefa34420
3 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue