From 959f8fd8445e7c32f16383e4a53abc4138a01cdb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 10 Jul 2019 21:58:08 +0100 Subject: [PATCH] Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../views/elements/MemberEventListSummary-test.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/components/views/elements/MemberEventListSummary-test.js b/test/components/views/elements/MemberEventListSummary-test.js index b593923ef9..f3749b850f 100644 --- a/test/components/views/elements/MemberEventListSummary-test.js +++ b/test/components/views/elements/MemberEventListSummary-test.js @@ -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", ); });