Skip to content

Commit

Permalink
Added formatting of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshith-ravi committed May 7, 2020
1 parent 7dae4f7 commit d8d0b55
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/models/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,20 @@ fn check_types_are_storing_values() {
BaseMessage::RegisterHookResponse { request_id } => {
assert_eq!(request_id, &String::from("request_id"));
}
BaseMessage::TriggerHookRequest { request_id, hook, data } => {
BaseMessage::TriggerHookRequest {
request_id,
hook,
data,
} => {
assert_eq!(request_id, &String::from("request_id"));
assert_eq!(hook, &String::from("hook"));
assert_eq!(data, &Value::Null);
}
BaseMessage::TriggerHookResponse { request_id, hook, data } => {
BaseMessage::TriggerHookResponse {
request_id,
hook,
data,
} => {
assert_eq!(request_id, &String::from("request_id"));
assert_eq!(hook, &Some(String::from("hook")));
assert_eq!(data, &Value::Null);
Expand Down

0 comments on commit d8d0b55

Please sign in to comment.