Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos committed Jul 5, 2024
1 parent d51584c commit 51aabee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DhisPeriodUtilsTest {
.build()

Assert.assertEquals(
"11/1/2019",
"11/01/2019",
periodUtils.getPeriodUIString(null, testDate, Locale.ENGLISH),
)
}
Expand All @@ -66,7 +66,7 @@ class DhisPeriodUtilsTest {
.build()

Assert.assertEquals(
"11/1/2019",
"11/01/2019",
periodUtils.getPeriodUIString(
PeriodType.Daily,
testDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ConfigureEventReportDateTest {
)

// And has a concrete date
val expectedDate = "14/2/2022"
val expectedDate = "14/02/2022"

val event: Event = mock {
on { eventDate() } doReturn DateUtils.uiDateFormat().parse(expectedDate)
Expand Down Expand Up @@ -97,7 +97,7 @@ class ConfigureEventReportDateTest {
periodUtils = periodUtils,
)

val tomorrow = "16/2/2022"
val tomorrow = "16/02/2022"

whenever(
periodUtils.getPeriodUIString(any(), any(), any()),
Expand All @@ -122,8 +122,8 @@ class ConfigureEventReportDateTest {
scheduleInterval = 6,
)

val lastEventDate = "13/2/2022"
val nextEventDate = "19/2/2022"
val lastEventDate = "13/02/2022"
val nextEventDate = "19/02/2022"
whenever(
repository.getStageLastDate(ENROLLMENT_ID),
) doReturn DateUtils.uiDateFormat().parse(lastEventDate)
Expand All @@ -147,8 +147,8 @@ class ConfigureEventReportDateTest {
scheduleInterval = 6,
)

val lastEventDate = "13/2/2022"
val nextEventDate = "19/2/2022"
val lastEventDate = "13/02/2022"
val nextEventDate = "19/02/2022"
whenever(
repository.getStageLastDate(ENROLLMENT_ID),
) doReturn null
Expand Down Expand Up @@ -180,8 +180,8 @@ class ConfigureEventReportDateTest {
enrollmentId = ENROLLMENT_ID,
)

val lastEventDate = "13/2/2022"
val nextEventDate = "15/2/2022"
val lastEventDate = "13/02/2022"
val nextEventDate = "15/02/2022"
whenever(
repository.getStageLastDate(ENROLLMENT_ID),
) doReturn null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ class SearchTEIViewModelTest {
val expectedMap = mapOf(
"uid1" to "Friendly OrgUnit Name",
"uid2" to "Male",
"uid3" to "21/2/2024",
"uid4" to "21/2/2024 01:00",
"uid3" to "21/02/2024",
"uid4" to "21/02/2024 - 01:00",
"uid5" to "Boolean: false",
"uid6" to "Yes Only",
"uid7" to "Text value",
Expand Down

0 comments on commit 51aabee

Please sign in to comment.