mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
Fix a few tests
This commit is contained in:
parent
6b0e05cdf7
commit
ed1d3cd56e
2 changed files with 2 additions and 11 deletions
|
@ -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(" ", "");
|
||||||
|
|
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue