huskies: merge 864
This commit is contained in:
@@ -168,6 +168,7 @@ mod tests {
|
||||
"9970_story_archived",
|
||||
"6_archived",
|
||||
"---\nname: Archived\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Archived\n---\n"),
|
||||
);
|
||||
|
||||
// Also place a stale .md file in a temp 1_backlog/ dir.
|
||||
@@ -200,9 +201,24 @@ mod tests {
|
||||
fn scan_stage_items_returns_sorted_story_ids() {
|
||||
// Write items via the CRDT store (the primary source of truth).
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("9942_story_foo", "2_current", "---\nname: foo\n---");
|
||||
crate::db::write_item_with_content("9940_story_bar", "2_current", "---\nname: bar\n---");
|
||||
crate::db::write_item_with_content("9935_story_baz", "2_current", "---\nname: baz\n---");
|
||||
crate::db::write_item_with_content(
|
||||
"9942_story_foo",
|
||||
"2_current",
|
||||
"---\nname: foo\n---",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: foo\n---"),
|
||||
);
|
||||
crate::db::write_item_with_content(
|
||||
"9940_story_bar",
|
||||
"2_current",
|
||||
"---\nname: bar\n---",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: bar\n---"),
|
||||
);
|
||||
crate::db::write_item_with_content(
|
||||
"9935_story_baz",
|
||||
"2_current",
|
||||
"---\nname: baz\n---",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: baz\n---"),
|
||||
);
|
||||
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
let items = scan_stage_items(tmp.path(), "2_current");
|
||||
|
||||
Reference in New Issue
Block a user