diff --git a/src/tests.rs b/src/tests.rs index d95ecc6..2e996d1 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -78,6 +78,7 @@ async fn test_0045_join_presence_empty_room() { .clone() .with_node("room") .with_resource("nick"); + let roomjid = COMPONENT_JID.clone().with_node("room"); // let join: Element = Presence::new(PresenceType::None) @@ -120,4 +121,10 @@ async fn test_0045_join_presence_empty_room() { handle_stanza(&mut component, &mut rooms).await.unwrap(); component.assert(); + + assert_eq!(rooms.len(), 1); + match rooms.get(&roomjid) { + Some(_) => (), + None => panic!(), + } }