forked from lavina/lavina
Replace with chelik
This commit is contained in:
parent
e9dd5e06f1
commit
351fda4580
|
@ -658,7 +658,7 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn parse_message() {
|
async fn parse_message() {
|
||||||
let input = r#"<message id="aacea" type="chat" to="nikita@vlnv.dev"><subject>daa</subject><body>bbb</body><unknown-stuff></unknown-stuff></message>"#;
|
let input = r#"<message id="aacea" type="chat" to="chelik@xmpp.ru"><subject>daa</subject><body>bbb</body><unknown-stuff></unknown-stuff></message>"#;
|
||||||
let result: Message<Ignore> = crate::xml::parse(input).unwrap();
|
let result: Message<Ignore> = crate::xml::parse(input).unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result,
|
result,
|
||||||
|
@ -666,8 +666,8 @@ mod tests {
|
||||||
from: None,
|
from: None,
|
||||||
id: Some("aacea".to_string()),
|
id: Some("aacea".to_string()),
|
||||||
to: Some(Jid {
|
to: Some(Jid {
|
||||||
name: Some(Name("nikita".into())),
|
name: Some(Name("chelik".into())),
|
||||||
server: Server("vlnv.dev".into()),
|
server: Server("xmpp.ru".into()),
|
||||||
resource: None
|
resource: None
|
||||||
}),
|
}),
|
||||||
r#type: MessageType::Chat,
|
r#type: MessageType::Chat,
|
||||||
|
@ -681,7 +681,7 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn parse_message_empty_custom() {
|
async fn parse_message_empty_custom() {
|
||||||
let input = r#"<message id="aacea" type="chat" to="nikita@vlnv.dev"><subject>daa</subject><body>bbb</body><unknown-stuff/></message>"#;
|
let input = r#"<message id="aacea" type="chat" to="chelik@xmpp.ru"><subject>daa</subject><body>bbb</body><unknown-stuff/></message>"#;
|
||||||
let result: Message<Ignore> = crate::xml::parse(input).unwrap();
|
let result: Message<Ignore> = crate::xml::parse(input).unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result,
|
result,
|
||||||
|
@ -689,8 +689,8 @@ mod tests {
|
||||||
from: None,
|
from: None,
|
||||||
id: Some("aacea".to_string()),
|
id: Some("aacea".to_string()),
|
||||||
to: Some(Jid {
|
to: Some(Jid {
|
||||||
name: Some(Name("nikita".into())),
|
name: Some(Name("chelik".into())),
|
||||||
server: Server("vlnv.dev".into()),
|
server: Server("xmpp.ru".into()),
|
||||||
resource: None
|
resource: None
|
||||||
}),
|
}),
|
||||||
r#type: MessageType::Chat,
|
r#type: MessageType::Chat,
|
||||||
|
|
Loading…
Reference in New Issue