Skip to content

Commit

Permalink
correct an indentation and a compared value.
Browse files Browse the repository at this point in the history
Signed-off-by: SHIMIZU Toshihiro <[email protected]>
  • Loading branch information
toshirin33 committed Oct 6, 2020
1 parent e38b565 commit 07fd4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libindy/tests/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ mod medium_cases {
let dids = did::list_my_dids_with_meta(setup.wallet_handle).unwrap();
let info_list: serde_json::Value = serde_json::from_str(&dids).unwrap();
assert_eq!(info_list.as_array().unwrap().len(), 1);
assert!(info_list[0]["metadata"].is_null());
assert!(info_list[0]["metadata"].is_null());
assert_eq!(setup.verkey, info_list[0]["verkey"].as_str().unwrap().to_string());
}

Expand All @@ -1058,7 +1058,7 @@ mod medium_cases {
}
let dids = did::list_my_dids_with_meta(setup.wallet_handle).unwrap();
let info_list: serde_json::Value = serde_json::from_str(&dids).unwrap();
assert_eq!(info_list.as_array().unwrap().len(), did2verkey.len());
assert_eq!(info_list.as_array().unwrap().len(), 10);
for info in info_list.as_array().unwrap() {
assert_eq!(info["metadata"].as_str().unwrap().to_string(),
METADATA.to_string());
Expand Down

0 comments on commit 07fd4ad

Please sign in to comment.