Fix second review round of repeat from completion (#79)
This commit is contained in:
1 parent
b0885169e7
commit
d59d4a3d44
15 files changed
+113
-49
No files matched your search
+10
@@ -344,6 +344,16 @@ class RoomTasksDataSourceTest {
|
||||
assertThat(db.tasks().allIn(listId).filter { !it.isDeleted }.map { it.id }).containsExactly(id)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun skippingAnOccurrenceOfAFromCompletionSeriesKeepsToTheSchedule() {
|
||||
val at = now - 10.days
|
||||
val id = fromCompletion(at, "FREQ=WEEKLY")
|
||||
|
||||
source.setCancelledInstance(id, at, cancelled = true)
|
||||
|
||||
assertThat(db.tasks().entity(id)!!.dtstart).isEqualTo(at + 7.days)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun theLastTickOfAFromCompletionSeriesClosesIt() {
|
||||
val at = now - 1.days
|
||||
|
||||
Reference in new issue
Block a user