Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavy Airi committed May 2, 2023
1 parent ec399a7 commit 0c9754b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions aries_vcx/src/utils/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mod tests {
data: vec!["name".to_string(), "age".to_string()],
state: "1".to_string(),
source_id: "foo".to_string(),
thread_id: "bat".to_string()
thread_id: "bat".to_string(),
};

let serialized = serde_json::to_string(&value).unwrap();
Expand All @@ -68,7 +68,6 @@ mod tests {
assert!(serialized.contains(r#""state":"1""#));
assert!(serialized.contains(r#""source_id":"foo""#));
assert!(serialized.contains(r#""thread_id":"bat""#));

}

#[test]
Expand All @@ -90,12 +89,17 @@ mod tests {
let ans: SerializableObjectWithState<Vec<String>, String> = result.unwrap();

let (data, state, source_id, thread_id) = match ans {
SerializableObjectWithState::V1 { data, state, source_id, thread_id } => (data, state, source_id, thread_id),
SerializableObjectWithState::V1 {
data,
state,
source_id,
thread_id,
} => (data, state, source_id, thread_id),
};

assert_eq!(data, vec!["name".to_string(), "age".to_string()]);
assert_eq!(state, "1");
assert_eq!(source_id, "foo");
assert_eq!(thread_id, "bat");
}
}
}

0 comments on commit 0c9754b

Please sign in to comment.