Skip to content

Commit

Permalink
fix test reference:
Browse files Browse the repository at this point in the history
  • Loading branch information
malmstein committed Nov 20, 2024
1 parent ce23edd commit c1c08a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RealQualityAppVersionProviderTest {

@Test
fun whenBuildDateEmptyThenReturnDefault() {
whenever(appBuildConfig.buildDateTime).thenReturn(0L)
whenever(appBuildConfig.buildDateTimeMillis).thenReturn(0L)
val appVersion = testee.provide()
assertTrue(appVersion == APP_VERSION_QUALITY_DEFAULT_VALUE)
}
Expand Down Expand Up @@ -83,7 +83,7 @@ class RealQualityAppVersionProviderTest {

private fun givenBuildDateDaysAgo(days: Long) {
val daysAgo = LocalDateTime.now().minusDays(days).atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()
whenever(appBuildConfig.buildDateTime).thenReturn(daysAgo)
whenever(appBuildConfig.buildDateTimeMillis).thenReturn(daysAgo)
}

private fun givenVersionName(versionName: String) {
Expand Down

0 comments on commit c1c08a9

Please sign in to comment.