macro_rules! assert_decrypted_message_eq {
($event:expr, $expected:expr, $($msg:tt)*) => { ... };
($event:expr, $expected:expr) => { ... };
}
Available on crate feature
testing
only.Expand description
Given a TimelineEvent
assert that the event was decrypted and that the
message matches the expected value.
ยงExamples
use matrix_sdk::assert_decrypted_message_eq;
let room =
client.get_room(&room_id).expect("Bob should have received the invite");
let event = room.event(&event_id, None).await?;
assert_decrypted_message_eq!(
event,
"It's a secret to everybody!",
"The decrypted event should match the expected secret message"
);