diff options
author | Yigit Sever | 2021-04-14 22:40:33 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-14 22:40:33 +0300 |
commit | 21e62ad7e312bbe57bf7098f0b3607e72fcffddb (patch) | |
tree | caba4d95573cd27698878790a1e4683e2ab24082 /tests/route_tests.rs | |
parent | 271ac922b8e47a74fc467c2a4c54beae7a4fe60d (diff) | |
download | gradecoin-21e62ad7e312bbe57bf7098f0b3607e72fcffddb.tar.gz gradecoin-21e62ad7e312bbe57bf7098f0b3607e72fcffddb.tar.bz2 gradecoin-21e62ad7e312bbe57bf7098f0b3607e72fcffddb.zip |
Transactions return as dict
Diffstat (limited to 'tests/route_tests.rs')
-rw-r--r-- | tests/route_tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/route_tests.rs b/tests/route_tests.rs index 5c2d891..55a536d 100644 --- a/tests/route_tests.rs +++ b/tests/route_tests.rs | |||
@@ -98,7 +98,7 @@ sQIDAQAB | |||
98 | 98 | ||
99 | assert_eq!(res.status(), StatusCode::OK); | 99 | assert_eq!(res.status(), StatusCode::OK); |
100 | 100 | ||
101 | let expected_json_body = r#"[{"by":"source_public_key_signature","source":"source_public_key_signature","target":"target_public_key_signature","amount":3,"timestamp":"2021-04-13T20:55:30"}]"#; | 101 | let expected_json_body = r#"{"source_public_key_signature":{"by":"source_public_key_signature","source":"source_public_key_signature","target":"target_public_key_signature","amount":3,"timestamp":"2021-04-13T20:55:30"}}"#; |
102 | 102 | ||
103 | assert_eq!(res.body(), expected_json_body); | 103 | assert_eq!(res.body(), expected_json_body); |
104 | } | 104 | } |