Skip to content

Commit

Permalink
feat: [ANDROAPP-5896] test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos committed Feb 12, 2024
1 parent a85e855 commit c7ef08b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ class EventCapturePresenterTest {
@Test
fun `Should close form if it could not delete an event`() {
whenever(eventRepository.deleteEvent()) doReturn Observable.just(false)
whenever(eventRepository.programStage()) doReturn Observable.just("programStage")

presenter.deleteEvent()
verify(view).finishDataEntry()
Expand All @@ -149,6 +148,7 @@ class EventCapturePresenterTest {
fun `Should skip an event`() {
val status = EventStatus.SKIPPED
whenever(eventRepository.updateEventStatus(status)) doReturn Observable.just(true)
whenever(eventRepository.programStage()) doReturn Observable.just("programStage")

presenter.skipEvent()
verify(view).showSnackBar(any(), any())
Expand Down

0 comments on commit c7ef08b

Please sign in to comment.