You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-07 23:02:56 +03:00
Make more of the code conform to Strict TSC (#2756)
This commit is contained in:
committed by
GitHub
parent
f70f6db926
commit
12a4d2a749
@@ -1276,9 +1276,9 @@ describe("MatrixClient syncing", () => {
|
||||
client!.on(RoomEvent.TimelineReset, (room) => {
|
||||
resetCallCount++;
|
||||
|
||||
const tl = room.getLiveTimeline();
|
||||
expect(tl.getEvents().length).toEqual(0);
|
||||
const tok = tl.getPaginationToken(EventTimeline.BACKWARDS);
|
||||
const tl = room?.getLiveTimeline();
|
||||
expect(tl?.getEvents().length).toEqual(0);
|
||||
const tok = tl?.getPaginationToken(EventTimeline.BACKWARDS);
|
||||
expect(tok).toEqual("newerTok");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user