mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 11:48:18 +00:00
fix addressbook import test
This commit is contained in:
@@ -63,5 +63,11 @@ END:VCARD",
|
|||||||
let response = app.clone().oneshot(request).await.unwrap();
|
let response = app.clone().oneshot(request).await.unwrap();
|
||||||
assert_eq!(response.status(), StatusCode::OK);
|
assert_eq!(response.status(), StatusCode::OK);
|
||||||
let body = response.extract_string().await;
|
let body = response.extract_string().await;
|
||||||
|
insta::with_settings!({
|
||||||
|
filters => vec![
|
||||||
|
(r"UID:.+", "UID:[UID]")
|
||||||
|
]
|
||||||
|
}, {
|
||||||
insta::assert_snapshot!("get_body", body);
|
insta::assert_snapshot!("get_body", body);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ N:Perreault;Simon;;;ing. jr,M.Sc.
|
|||||||
BDAY:--0203
|
BDAY:--0203
|
||||||
GENDER:M
|
GENDER:M
|
||||||
EMAIL;TYPE=work:simon.perreault@viagenie.ca
|
EMAIL;TYPE=work:simon.perreault@viagenie.ca
|
||||||
UID:42ed1bd7-8538-45fb-917d-872e2466a7ce
|
UID:[UID]
|
||||||
END:VCARD
|
END:VCARD
|
||||||
|
|||||||
Reference in New Issue
Block a user