1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00
This commit is contained in:
Bruno Windels
2018-07-26 19:08:00 +02:00
parent 230a9311a0
commit cf08901d02
3 changed files with 9 additions and 13 deletions

View File

@@ -355,7 +355,7 @@ describe("SyncAccumulator", function() {
"m.heroes": ["@alice:bar"],
"m.invited_member_count": 2,
}));
let summary = sa.getJSON().roomsData.join["!foo:bar"].summary;
const summary = sa.getJSON().roomsData.join["!foo:bar"].summary;
expect(summary["m.invited_member_count"]).toEqual(2);
expect(summary["m.heroes"]).toEqual(["@alice:bar"]);
});
@@ -369,14 +369,12 @@ describe("SyncAccumulator", function() {
"m.heroes": ["@bob:bar"],
"m.joined_member_count": 5,
}));
let summary = sa.getJSON().roomsData.join["!foo:bar"].summary;
const summary = sa.getJSON().roomsData.join["!foo:bar"].summary;
expect(summary["m.invited_member_count"]).toEqual(2);
expect(summary["m.joined_member_count"]).toEqual(5);
expect(summary["m.heroes"]).toEqual(["@bob:bar"]);
});
})
});
});
function syncSkeleton(joinObj) {