Skip to content

Commit

Permalink
Fix ktlint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Nov 15, 2024
1 parent f306e5d commit c4762cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,18 @@ class DefaultTabStatsBucketingTest {

@Test
fun testGetTabsActiveTwoWeeksAgo11To20() = runBlocking {
whenever(tabRepository.countTabsAccessedWithinRange(TabStatsBucketing.TWO_WEEKS_IN_DAYS, TabStatsBucketing.THREE_WEEKS_IN_DAYS)).thenReturn(20)
whenever(tabRepository.countTabsAccessedWithinRange(TabStatsBucketing.TWO_WEEKS_IN_DAYS, TabStatsBucketing.THREE_WEEKS_IN_DAYS)).thenReturn(
20,
)
val result = defaultTabStatsBucketing.getTabsActiveTwoWeeksAgo()
assertEquals("11-20", result)
}

@Test
fun testGetTabsActiveTwoWeeksAgoMoreThan20() = runBlocking {
whenever(tabRepository.countTabsAccessedWithinRange(TabStatsBucketing.TWO_WEEKS_IN_DAYS, TabStatsBucketing.THREE_WEEKS_IN_DAYS)).thenReturn(199)
whenever(tabRepository.countTabsAccessedWithinRange(TabStatsBucketing.TWO_WEEKS_IN_DAYS, TabStatsBucketing.THREE_WEEKS_IN_DAYS)).thenReturn(
199,
)
val result = defaultTabStatsBucketing.getTabsActiveTwoWeeksAgo()
assertEquals("21+", result)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ class ShowOnAppLaunchOptionHandlerImplTest {

override fun countTabsAccessedWithinRange(
accessOlderThan: Long,
accessNotMoreThan: Long?
accessNotMoreThan: Long?,
): Int {
TODO("Not yet implemented")
}
Expand Down

0 comments on commit c4762cf

Please sign in to comment.