From 36940e2972fcd734d12a7cb3b09ab64c7abfd41a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 27 May 2017 14:27:29 +0300 Subject: [PATCH] Update tests --- tests/events.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/events.cc b/tests/events.cc index 4917f009..3c5ed536 100644 --- a/tests/events.cc +++ b/tests/events.cc @@ -451,29 +451,29 @@ TEST(MemberEventContent, Deserialization) auto data = QJsonObject{{"membership", "join"}}; content.deserialize(data); - EXPECT_EQ(content.membershipState(), Membership::JoinState); + EXPECT_EQ(content.membershipState(), Membership::Join); data = QJsonObject{{"membership", "invite"}, {"displayname", "Username"}}; content.deserialize(data); - EXPECT_EQ(content.membershipState(), Membership::InviteState); + EXPECT_EQ(content.membershipState(), Membership::Invite); EXPECT_EQ(content.displayName(), "Username"); data = QJsonObject{{"membership", "leave"}, {"avatar_url", "https://matrix.org"}}; content.deserialize(data); - EXPECT_EQ(content.membershipState(), Membership::LeaveState); + EXPECT_EQ(content.membershipState(), Membership::Leave); EXPECT_EQ(content.avatarUrl().toString(), "https://matrix.org"); data = QJsonObject{{"membership", "ban"}}; content.deserialize(data); - EXPECT_EQ(content.membershipState(), Membership::BanState); + EXPECT_EQ(content.membershipState(), Membership::Ban); data = QJsonObject{{"membership", "knock"}}; content.deserialize(data); - EXPECT_EQ(content.membershipState(), Membership::KnockState); + EXPECT_EQ(content.membershipState(), Membership::Knock); } TEST(MemberEventContent, InvalidMembership)