diff --git a/xmpp-parsers/src/mam.rs b/xmpp-parsers/src/mam.rs index d1a67a3..a644cef 100644 --- a/xmpp-parsers/src/mam.rs +++ b/xmpp-parsers/src/mam.rs @@ -391,21 +391,9 @@ mod tests { assert_eq!(elem, elem2); } - #[ignore] #[test] fn test_serialize_query_with() { - let elem: Element = r#" - - - - urn:xmpp:mam:2 - - - juliet@capulet.lit - - - - "# + let reference: Element = "urn:xmpp:mam:2juliet@capulet.lit" .parse() .unwrap(); @@ -415,10 +403,10 @@ mod tests { title: None, instructions: None, fields: vec![Field { - var: String::from("var"), + var: String::from("with"), type_: FieldType::TextSingle, label: None, - required: true, + required: false, options: vec![], values: vec![String::from("juliet@capulet.lit")], media: vec![], @@ -430,7 +418,7 @@ mod tests { set: None, form: Some(form), }; - let elem2 = foo.into(); - assert_eq!(elem, elem2); + let serialized: Element = foo.into(); + assert_eq!(serialized, reference); } }