Fix a few tests

This commit is contained in:
Temirkhan Myrzamadi 2019-09-21 05:25:15 +06:00
parent 6b0e05cdf7
commit ed1d3cd56e
2 changed files with 2 additions and 11 deletions

View file

@ -48,11 +48,7 @@ mod tests {
"data":"somedata", "data":"somedata",
"phone_number":"1313", "phone_number":"1313",
"email":"someemail", "email":"someemail",
"files":null, "front_size":{"file_id":"someId","file_size":13,"file_date":13}
"front_size":{"file_id":"someId","file_size":13,"file_date":13},
"reverse_side":null,
"selfie":null,
"translation":null
}"# }"#
.replace("\n", "") .replace("\n", "")
.replace(" ", ""); .replace(" ", "");

View file

@ -13,8 +13,7 @@ mod tests {
use super::*; use super::*;
#[test] #[test]
fn should_serialize_passport_data_to_json() { fn must_serialize_passport_data_to_json() {
// given
let expected_json = r#"{ let expected_json = r#"{
"data": "data":
[ [
@ -23,16 +22,12 @@ mod tests {
"data":"somedata", "data":"somedata",
"phone_number":"1313", "phone_number":"1313",
"email":"someemail", "email":"someemail",
"files":null,
"front_size": "front_size":
{ {
"file_id":"someId", "file_id":"someId",
"file_size":13, "file_size":13,
"file_date":13 "file_date":13
}, },
"reverse_side":null,
"selfie":null,
"translation":null
} }
], ],
"credential": "credential":