chore: make all tests green again
This commit is contained in:
parent
7a9bfc4877
commit
a384397cec
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue