mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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",
|
||||
"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(" ", "");
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue