Fix tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8d4356a5b9
commit
959f8fd844
1 changed files with 9 additions and 2 deletions
|
@ -494,7 +494,14 @@ describe('MemberEventListSummary', function() {
|
|||
membership: "leave",
|
||||
senderId: "@some_other_user:some.domain",
|
||||
},
|
||||
// default = left
|
||||
// default for sender=target (leave)
|
||||
{
|
||||
userId: "@user_1:some.domain",
|
||||
prevMembership: "????",
|
||||
membership: "leave",
|
||||
senderId: "@user_1:some.domain",
|
||||
},
|
||||
// default for sender<>target (kicked)
|
||||
{
|
||||
userId: "@user_1:some.domain",
|
||||
prevMembership: "????",
|
||||
|
@ -520,7 +527,7 @@ describe('MemberEventListSummary', function() {
|
|||
|
||||
expect(summaryText).toBe(
|
||||
"user_1 was invited, was banned, joined, rejected their invitation, left, " +
|
||||
"had their invitation withdrawn, was unbanned, was kicked and left",
|
||||
"had their invitation withdrawn, was unbanned, was kicked, left and was kicked",
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue