From 6343b831b92a28f5ec66d1cfc72ce3e9439c21da Mon Sep 17 00:00:00 2001 From: Don Turner Date: Wed, 10 May 2023 08:54:40 +0100 Subject: [PATCH] Use NoOpAnalyticsHelper for tests Change-Id: I44657037f8f7ec6e38bcc3901e235ceab8c71237 --- .../apps/nowinandroid/feature/search/SearchViewModelTest.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/feature/search/src/test/java/com/google/samples/apps/nowinandroid/feature/search/SearchViewModelTest.kt b/feature/search/src/test/java/com/google/samples/apps/nowinandroid/feature/search/SearchViewModelTest.kt index 1d50b75fd..01763ba09 100644 --- a/feature/search/src/test/java/com/google/samples/apps/nowinandroid/feature/search/SearchViewModelTest.kt +++ b/feature/search/src/test/java/com/google/samples/apps/nowinandroid/feature/search/SearchViewModelTest.kt @@ -17,6 +17,8 @@ package com.google.samples.apps.nowinandroid.feature.search import androidx.lifecycle.SavedStateHandle +import com.google.samples.apps.nowinandroid.core.analytics.AnalyticsHelper +import com.google.samples.apps.nowinandroid.core.analytics.NoOpAnalyticsHelper import com.google.samples.apps.nowinandroid.core.domain.GetRecentSearchQueriesUseCase import com.google.samples.apps.nowinandroid.core.domain.GetSearchContentsCountUseCase import com.google.samples.apps.nowinandroid.core.domain.GetSearchContentsUseCase @@ -68,6 +70,7 @@ class SearchViewModelTest { recentSearchQueriesUseCase = getRecentQueryUseCase, savedStateHandle = SavedStateHandle(), recentSearchRepository = recentSearchRepository, + analyticsHelper = NoOpAnalyticsHelper(), ) }