Skip to content

Commit

Permalink
Fix by_sender test
Browse files Browse the repository at this point in the history
  • Loading branch information
aringenbach committed Jun 28, 2023
1 parent 0d80ff7 commit f71a0a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/matrix-sdk-ui/src/timeline/tests/reaction_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use assert_matches::assert_matches;
use ruma::{server_name, user_id, EventId, MilliSecondsSinceUnixEpoch, OwnedUserId, UserId};

use crate::timeline::{
Expand All @@ -35,7 +36,11 @@ fn by_sender() {
let alice_reactions = reaction_group.by_sender(&alice).collect::<Vec<_>>();

let reaction = *alice_reactions.get(0).unwrap();
assert_eq!(reaction.1.unwrap(), reaction_1.event_id().unwrap());

assert_matches!(
reaction_1,
EventItemIdentifier::EventId(event_id) => { assert_eq!(reaction.1.unwrap(), &event_id) }
)
}

#[test]
Expand Down

0 comments on commit f71a0a2

Please sign in to comment.