events: Remove EventJson from presence tests

This commit is contained in:
Jonas Platte 2020-06-13 00:26:57 +02:00
parent a6feed7dcb
commit a9189d7db3
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -59,7 +59,6 @@ mod tests {
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
use super::{PresenceEvent, PresenceEventContent, PresenceState};
use crate::EventJson;
#[test]
fn serialization() {
@ -105,10 +104,7 @@ mod tests {
});
assert_matches!(
from_json_value::<EventJson<PresenceEvent>>(json)
.unwrap()
.deserialize()
.unwrap(),
from_json_value::<PresenceEvent>(json).unwrap(),
PresenceEvent {
content: PresenceEventContent {
avatar_url: Some(avatar_url),