Skip to content

Commit d6931f0

Browse files
committed
fix(test): adjust tests to new md format
1 parent cc293d9 commit d6931f0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lgg-core/src/todos/format_utils.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ mod tests {
5858
let format = "%d/%m/%Y %H:%M";
5959
let e = format_todo_entry_block("Item 1", "", None, None, format);
6060

61-
assert_eq!(e, "- [ ] Item 1\n\n");
61+
assert_eq!(e, "- [ ] Item 1\n");
6262
}
6363

6464
#[test]
6565
fn todo_entry_block_with_body() {
6666
let format = "%d/%m/%Y %H:%M";
6767
let e = format_todo_entry_block("Item 1", "With body", None, None, format);
6868

69-
assert_eq!(e, "- [ ] Item 1\n With body\n\n");
69+
assert_eq!(e, "- [ ] Item 1\n With body\n");
7070
}
7171

7272
#[test]
@@ -77,7 +77,7 @@ mod tests {
7777
let format = "%d/%m/%Y %H:%M";
7878
let e = format_todo_entry_block("Item 1", "", Some(due_date), None, format);
7979

80-
assert_eq!(e, "- [ ] Item 1 | 20/08/2025 07:00\n\n");
80+
assert_eq!(e, "- [ ] Item 1 | 20/08/2025 07:00\n");
8181
}
8282

8383
#[test]
@@ -91,7 +91,7 @@ mod tests {
9191
let format = "%d/%m/%Y %H:%M";
9292
let e = format_todo_entry_block("Item 1", "", Some(due_date), Some(done_date), format);
9393

94-
assert_eq!(e, "- [ ] Item 1 | 20/08/2025 07:00 | 22/08/2025 18:00\n\n");
94+
assert_eq!(e, "- [ ] Item 1 | 20/08/2025 07:00 | 22/08/2025 18:00\n");
9595
}
9696
#[test]
9797
fn todo_entry_block_only_end_date() {
@@ -101,6 +101,6 @@ mod tests {
101101
let format = "%d/%m/%Y %H:%M";
102102
let e = format_todo_entry_block("Item 1", "", None, Some(done_date), format);
103103

104-
assert_eq!(e, "- [ ] Item 1 | | 22/08/2025 18:00\n\n");
104+
assert_eq!(e, "- [ ] Item 1 | | 22/08/2025 18:00\n");
105105
}
106106
}

0 commit comments

Comments
 (0)