Add type assertions where we know an event is a room event (has room_id) (#9498)
This commit is contained in:
parent
306a2449e5
commit
b7ff56a726
4 changed files with 13 additions and 12 deletions
|
@ -28,7 +28,7 @@ import { isSelfLocation } from "../../../src/utils/location";
|
|||
|
||||
describe("isSelfLocation", () => {
|
||||
it("Returns true for a full m.asset event", () => {
|
||||
const content = makeLocationContent("", '0');
|
||||
const content = makeLocationContent("", '0', Date.now());
|
||||
expect(isSelfLocation(content)).toBe(true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue