Skip to content

Commit

Permalink
fix: [ANDROAPP-6493] adapt unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy committed Nov 13, 2024
1 parent 0ffa2c8 commit 09a4b7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class CreateEventUseCaseTest {
whenever(d2.programModule().programStages().uid(PROGRAM_STAGE_ID).blockingGet()?.standardInterval()) doReturn 15
whenever(d2.programModule().programStages().uid(PROGRAM_STAGE_ID).blockingGet()?.periodType()) doReturn PeriodType.Monthly
whenever(d2.programModule().programStages().uid(PROGRAM_STAGE_ID).blockingGet()?.periodType()) doReturn PeriodType.Monthly
whenever(dateUtils.getNextPeriod(PeriodType.Monthly, calendar.time, 0)) doReturn targetDate
whenever(dateUtils.getNextPeriod(PeriodType.Monthly, calendar.time, 1)) doReturn targetDate

runBlocking {
val result = createEventUseCase(PROGRAM_ID, ORG_UNIT_ID, PROGRAM_STAGE_ID, ENROLLMENT_ID)
Expand Down

0 comments on commit 09a4b7b

Please sign in to comment.