Update tests and fix formatting.

This commit is contained in:
Bindu
2021-09-20 03:47:59 -07:00
parent 36c1504c6a
commit a9fddf9963
13 changed files with 39 additions and 33 deletions

View File

@@ -119,7 +119,7 @@ class NumberButtonViewTest : BaseViewTest() {
fun testClick_shortToggleDisabled() {
prefs.isShortToggleEnabled = false
view.performClick()
assertFalse(edited)
assertTrue(edited)
}
@Test

View File

@@ -61,7 +61,7 @@ class PerformanceTest : BaseAndroidTest() {
val habit = fixtures.createEmptyHabit()
for (i in 0..4999) {
val timestamp: Timestamp = Timestamp(i * DAY_LENGTH)
CreateRepetitionCommand(habitList, habit, timestamp, 1).run()
CreateRepetitionCommand(habitList, habit, timestamp, 1, "").run()
}
db.setTransactionSuccessful()
db.endTransaction()