Skip to content

Commit 5316c4f

Browse files
committed
fix: test
1 parent ebf49ff commit 5316c4f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/repo.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ impl Repository {
171171

172172
#[cfg(test)]
173173
mod test {
174+
use std::collections::BTreeMap;
175+
174176
use super::*;
175177
use jira::models::{IssueFields, IssueKey};
176178

@@ -180,12 +182,13 @@ mod test {
180182
summary: Some(String::from(summary.unwrap_or("Example summary"))),
181183
..IssueFields::default()
182184
},
183-
id: String::from("10001"),
185+
id: Some(serde_json::to_value("10001").unwrap()),
184186
key: issue_key
185187
.unwrap_or(IssueKey::try_from(String::from("JB-1")).expect("Valid issue key")),
186188
self_ref: String::from("https://ddd.ddd.com/"),
187189
expand: Some(String::from("Don't remember")),
188190
names: None,
191+
remainder: BTreeMap::default(),
189192
}
190193
}
191194

0 commit comments

Comments
 (0)