diff --git a/src/types/misc/notification_subject_type.rs b/src/types/misc/notification_subject_type.rs index 79a54ce..453823d 100644 --- a/src/types/misc/notification_subject_type.rs +++ b/src/types/misc/notification_subject_type.rs @@ -32,28 +32,28 @@ mod tests { #[test] fn deserialize_notify_subject_type_issue() { - let json_data = r#""Issue""#; + let json_data = r#""issue""#; let notify_subject_type: NotifySubjectType = serde_json::from_str(json_data).unwrap(); assert_eq!(notify_subject_type, NotifySubjectType::Issue); } #[test] fn deserialize_notify_subject_type_pull_request() { - let json_data = r#""Pull""#; + let json_data = r#""pull""#; let notify_subject_type: NotifySubjectType = serde_json::from_str(json_data).unwrap(); assert_eq!(notify_subject_type, NotifySubjectType::Pull); } #[test] fn deserialize_notify_subject_type_commit() { - let json_data = r#""Commit""#; + let json_data = r#""commit""#; let notify_subject_type: NotifySubjectType = serde_json::from_str(json_data).unwrap(); assert_eq!(notify_subject_type, NotifySubjectType::Commit); } #[test] fn deserialize_notify_subject_type_repository() { - let json_data = r#""Repository""#; + let json_data = r#""repository""#; let notify_subject_type: NotifySubjectType = serde_json::from_str(json_data).unwrap(); assert_eq!(notify_subject_type, NotifySubjectType::Repository); } diff --git a/test_data/example_notification_subject.json b/test_data/example_notification_subject.json index ac2cd26..b5e13ed 100644 --- a/test_data/example_notification_subject.json +++ b/test_data/example_notification_subject.json @@ -4,6 +4,6 @@ "latest_comment_url": "https://api.example.com/issues/123/comments/456", "state": "open", "title": "Example Issue", - "type": "Issue", + "type": "issue", "url": "https://api.example.com/issues/123" } diff --git a/test_data/example_notification_thread.json b/test_data/example_notification_thread.json index 997d646..e9497fd 100644 --- a/test_data/example_notification_thread.json +++ b/test_data/example_notification_thread.json @@ -89,7 +89,7 @@ "latest_comment_url": "https://api.example.com/issues/123/comments/456", "state": "open", "title": "Example Issue", - "type": "Issue", + "type": "issue", "url": "https://api.example.com/issues/123" }, "unread": true,