Implement the midnight delay option

Closes #694.
This commit is contained in:
Quentin Hibon
2021-01-27 09:52:28 +01:00
parent 64069a6e7f
commit bb8d4abb9e
6 changed files with 41 additions and 10 deletions

View File

@@ -167,4 +167,12 @@ class PreferencesTest : BaseUnitTest() {
assertTrue(prefs.showArchived)
assertFalse(prefs.showCompleted)
}
@Test
@Throws(Exception::class)
fun testMidnightDelay() {
assertFalse(prefs.isMidnightDelayEnabled)
prefs.isMidnightDelayEnabled = true
assertTrue(prefs.isMidnightDelayEnabled)
}
}