summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralpaylan2021-04-14 01:53:30 +0300
committeralpaylan2021-04-14 01:53:30 +0300
commit6a27685c253e1ea520dd903cb3db4581f3ab66f6 (patch)
treecdad63a292ed97d5800b7360bdcdfa86ab356d13
parentdfe92a1f61d1d56246d1680442042deffa0ea76c (diff)
downloadgradecoin-6a27685c253e1ea520dd903cb3db4581f3ab66f6.tar.gz
gradecoin-6a27685c253e1ea520dd903cb3db4581f3ab66f6.tar.bz2
gradecoin-6a27685c253e1ea520dd903cb3db4581f3ab66f6.zip
finished claim testing.
-rw-r--r--tests/schema_tests.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/schema_tests.rs b/tests/schema_tests.rs
index 8b07f72..c6fae9d 100644
--- a/tests/schema_tests.rs
+++ b/tests/schema_tests.rs
@@ -28,7 +28,14 @@ mod tests {
28 28
29 #[test] 29 #[test]
30 fn claims_deserialize_correctly() { 30 fn claims_deserialize_correctly() {
31 31 let data = r#"{"tha":"hashed_string","iat":0,"exp":100}"#;
32 let claims: Claims = serde_json::from_str(data).unwrap();
33 let expected_claims = Claims {
34 tha: "hashed_string".to_owned(),
35 iat: 0,
36 exp: 100,
37 };
38 assert_eq!(claims, expected_claims);
32 } 39 }
33 40
34 #[test] 41 #[test]