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",
"phone_number":"1313",
"email":"someemail",
"files":null,
"front_size":{"file_id":"someId","file_size":13,"file_date":13},
"reverse_side":null,
"selfie":null,
"translation":null
"front_size":{"file_id":"someId","file_size":13,"file_date":13}
}"#
.replace("\n", "")
.replace(" ", "");

View file

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