Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloercoli committed Feb 7, 2024
1 parent c90314b commit afff0cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import org.wordpress.android.ui.reader.viewmodels.ReaderViewModel.ReaderUiState
import org.wordpress.android.ui.reader.viewmodels.ReaderViewModel.ReaderUiState.ContentUiState
import org.wordpress.android.util.JetpackBrandingUtils
import org.wordpress.android.util.SnackbarSequencer
import org.wordpress.android.util.UrlUtilsWrapper
import org.wordpress.android.viewmodel.Event
import java.util.Date

Expand Down Expand Up @@ -89,6 +90,8 @@ class ReaderViewModelTest : BaseUnitTest() {
private val emptyReaderTagList = ReaderTagList()
private val nonEmptyReaderTagList = createNonMockedNonEmptyReaderTagList()

private val urlUtilsWrapper = UrlUtilsWrapper()

@Before
fun setup() {
viewModel = ReaderViewModel(
Expand All @@ -105,6 +108,7 @@ class ReaderViewModelTest : BaseUnitTest() {
snackbarSequencer,
jetpackFeatureRemovalOverlayUtil,
readerTopBarMenuHelper,
urlUtilsWrapper
)

whenever(dateProvider.getCurrentDate()).thenReturn(Date(DUMMY_CURRENT_TIME))
Expand Down

0 comments on commit afff0cd

Please sign in to comment.