Checklists in the body, colour from tags, and commit-derived CalVer #4
@@ -670,7 +670,7 @@ mod tests {
|
|||||||
let created = app
|
let created = app
|
||||||
.create_note(NoteDraft {
|
.create_note(NoteDraft {
|
||||||
body: String::new(),
|
body: String::new(),
|
||||||
items: Some(vec!["milk".to_string(), "eggs".to_string()]),
|
items: Some(vec!["milk".to_string(), "eggs".to_string()]),
|
||||||
})
|
})
|
||||||
.expect("create should succeed");
|
.expect("create should succeed");
|
||||||
assert_eq!(created.display_title, "milk");
|
assert_eq!(created.display_title, "milk");
|
||||||
@@ -705,7 +705,7 @@ mod tests {
|
|||||||
let note = app
|
let note = app
|
||||||
.create_note(NoteDraft {
|
.create_note(NoteDraft {
|
||||||
body: "Packing".to_string(),
|
body: "Packing".to_string(),
|
||||||
items: Some(vec!["socks".to_string()]),
|
items: Some(vec!["socks".to_string()]),
|
||||||
})
|
})
|
||||||
.expect("create");
|
.expect("create");
|
||||||
assert_eq!(note.items.len(), 1);
|
assert_eq!(note.items.len(), 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user