chore: make all tests green again

This commit is contained in:
aviac 2023-10-25 22:53:48 +02:00
parent 7a9bfc4877
commit a384397cec
No known key found for this signature in database
GPG key ID: 644781002BDEA982
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}

View file

@ -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"
}

View file

@ -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,