events: Remove EventJson from presence tests
This commit is contained in:
parent
a6feed7dcb
commit
a9189d7db3
@ -59,7 +59,6 @@ mod tests {
|
|||||||
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
||||||
|
|
||||||
use super::{PresenceEvent, PresenceEventContent, PresenceState};
|
use super::{PresenceEvent, PresenceEventContent, PresenceState};
|
||||||
use crate::EventJson;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn serialization() {
|
fn serialization() {
|
||||||
@ -105,10 +104,7 @@ mod tests {
|
|||||||
});
|
});
|
||||||
|
|
||||||
assert_matches!(
|
assert_matches!(
|
||||||
from_json_value::<EventJson<PresenceEvent>>(json)
|
from_json_value::<PresenceEvent>(json).unwrap(),
|
||||||
.unwrap()
|
|
||||||
.deserialize()
|
|
||||||
.unwrap(),
|
|
||||||
PresenceEvent {
|
PresenceEvent {
|
||||||
content: PresenceEventContent {
|
content: PresenceEventContent {
|
||||||
avatar_url: Some(avatar_url),
|
avatar_url: Some(avatar_url),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user